effect-io-ai

Package: effect
Module: Context

Context.GenericTag

Creates a new Tag instance with an optional key parameter.

Example

import * as assert from "node:assert"
import { Context } from "effect"

assert.strictEqual(Context.GenericTag("PORT").key === Context.GenericTag("PORT").key, true)

Signature

declare const GenericTag: <Identifier, Service = Identifier>(key: string) => Tag<Identifier, Service>

Source

Since v2.0.0