Type Alias ContextToken<TValue>

ContextToken: { __type: TValue | null; id: string }

IMPORT_PATH: "@daiso-tech/core/execution-context/contracts"

Type-safe token for storing and retrieving execution context values.

A context token is a unique identifier that acts as a key for storing and accessing values within an execution context. The generic type parameter ensures type safety when storing and retrieving values associated with this token.

Type Parameters

  • TValue

    The type of value this token represents in the context

Type declaration

  • __type: TValue | null

    Phantom type that is only used for type inference. This property is never actually set at runtime and exists only to help TypeScript infer the correct value type when using get/put operations.

  • id: string

    Unique identifier for this token, used internally as the storage key