@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface ServiceCollection

    Records service descriptors for the Module.

    Factories are synchronous and lazy: registration creates no instance. Dependencies must be declared in the overload's inject map so plan preflight can validate the graph and lifetime rules before activation.

    interface ServiceCollection {
        singleton<T>(token: ServiceToken<T>, create: () => T): void;
        singleton<T, TMap extends Readonly<Record<string, ServiceToken<unknown>>>>(
            token: ServiceToken<T>,
            registration: { create: (injected: Injected<TMap>) => T; inject: TMap },
        ): void;
        transient<T>(token: ServiceToken<T>, create: () => T): void;
        transient<T, TMap extends Readonly<Record<string, ServiceToken<unknown>>>>(
            token: ServiceToken<T>,
            registration: { create: (injected: Injected<TMap>) => T; inject: TMap },
        ): void;
    }
    Index