Prometheus Entity Management API
    Preparing search index...

    A collection of available components and functions.

    Type Parameters

    • T extends ComponentApi

    Implements

    • CatalogInterface<T>
    Index
    • Type Parameters

      • T extends ComponentApi<ZodTypeAny>

      Parameters

      • id: string
      • components: T[]
      • Optionalfunctions: FunctionImplementation[]
      • OptionalthemeSchema: ZodObject<
            any,
            UnknownKeysParam,
            ZodTypeAny,
            { [key: string]: any },
            { [key: string]: any },
        >

      Returns Catalog<T>

    components: ReadonlyMap<string, T>

    A map of available components. This is readonly to encourage immutable extension patterns.

    functions: ReadonlyMap<string, FunctionImplementation>

    Map of functions provided by this catalog.

    id: string
    invoker: FunctionInvoker

    A ready-to-use FunctionInvoker callback that delegates to this catalog's functions. Can be passed directly to a DataContext.

    themeSchema?: ZodObject<
        any,
        UnknownKeysParam,
        ZodTypeAny,
        { [key: string]: any },
        { [key: string]: any },
    >

    The schema for theme parameters used by this catalog.