CmpStr - v3.2.1
    Preparing search index...

    Interface RegistryService<T>

    RegistryService defines the API for a generic registry of classes.

    interface RegistryService<T> {
        add: (
            name: string,
            cls: RegistryConstructor<T>,
            update?: boolean,
        ) => void;
        get: (name: string) => RegistryConstructor<T>;
        has: (name: string) => boolean;
        list: () => string[];
        remove: (name: string) => void;
    }

    Type Parameters

    • T

      The class type managed by the registry

    Index

    Properties

    Properties

    add: (name: string, cls: RegistryConstructor<T>, update?: boolean) => void
    get: (name: string) => RegistryConstructor<T>
    has: (name: string) => boolean
    list: () => string[]
    remove: (name: string) => void