@logixjs/core
    Preparing search index...

    Interface ScopeRegistry

    interface ScopeRegistry {
        clearAll: () => void;
        clearScope: (scopeId: string) => void;
        clearToken: (scopeId: string, token: AnyTag) => void;
        get: <A>(scopeId: string, token: Tag<any, A>) => A | undefined;
        register: <A>(
            scopeId: string,
            token: Tag<any, A>,
            value: A,
        ) => { release: () => void };
    }
    Index

    Properties

    clearAll: () => void

    Clears the entire registry.

    clearScope: (scopeId: string) => void

    Clears all tokens under a scope.

    clearToken: (scopeId: string, token: AnyTag) => void

    Deletes all registrations of a token under a scope (regardless of who registered them).

    get: <A>(scopeId: string, token: Tag<any, A>) => A | undefined

    Reads the current value for a token under a scope (the last registered value).

    register: <A>(
        scopeId: string,
        token: Tag<any, A>,
        value: A,
    ) => { release: () => void }

    Registers a scope-bound value (multi-party registration supported; the last registration wins for get()).

    Returns a release function that revokes this registration.