@adobe/data - v0.10.30
    Preparing search index...

    Variable componentsConst

    components: <
        D extends ComponentSchemas = {},
        S extends ComponentSchemas = {},
        P extends ComponentSchemas = {},
        Se extends ComponentSchemas = {},
    >(
        groups: ScopeGroups<D, S, P, Se>,
    ) => Simplify<D & S & P & Se> = componentsFacet

    Facet builders for a feature's core-database. Each groups declarations by schema scope (document/settings/presence/session) and stamps the matching flags; archetypes validate keys against the component map. See the facets/ folder.

    Type declaration

      • <
            D extends ComponentSchemas = {},
            S extends ComponentSchemas = {},
            P extends ComponentSchemas = {},
            Se extends ComponentSchemas = {},
        >(
            groups: ScopeGroups<D, S, P, Se>,
        ): Simplify<D & S & P & Se>
      • Build a feature's component facet map from its schema scopes, stamping each scope's flags (see ScopeGroups). Declare only the scopes you use — a document-only feature is just { document: { … } }. Component entries are any Schema; no default required (unlike Database.resources).

        export const components = Database.components({
        document: { mark: PlayerMark.schema },
        session: { dragPosition: DragPosition.schema },
        });

        Type Parameters

        Parameters

        • groups: ScopeGroups<D, S, P, Se>

        Returns Simplify<D & S & P & Se>