FuncType - v1.21.0
    Preparing search index...

    Variable Context

    Context: {
        empty: <R extends unknown = never>() => Context<R>;
        isContext: <R extends unknown>(value: unknown) => value is Context<R>;
        make: <S extends unknown>(tag: Tag<S>, service: S) => Context<S>;
    }

    Context companion object with utility methods

    Type Declaration

    • empty: <R extends unknown = never>() => Context<R>

      Creates an empty context with no services.

    • isContext: <R extends unknown>(value: unknown) => value is Context<R>

      Checks if a value is a Context.

    • make: <S extends unknown>(tag: Tag<S>, service: S) => Context<S>

      Creates a context with a single service.