IReadableContext: {
    contains<TValue>(
        token: ContextToken<TValue[]>,
        matchValue: NoInfer<TValue> | Invokable<[value: NoInfer<TValue>], boolean>,
    ): boolean;
    exists<TValue>(token: ContextToken<TValue>): boolean;
    get<TValue>(token: ContextToken<TValue>): null | TValue;
    getOr<TValue>(
        token: ContextToken<TValue>,
        defaultValue: Lazyable<TValue>,
    ): TValue;
    getOrFail<TValue>(token: ContextToken<TValue>): TValue;
    missing<TValue>(token: ContextToken<TValue>): boolean;
}

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

Read-only contract for accessing execution context values.

This contract provides methods to retrieve values stored in the execution context. It does not allow modifications, making it suitable for passing as a read-only view of the context to functions that should only inspect values, not modify them.

Type declaration