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

    Type Alias RowOf<S, K>

    RowOf: FromArchetype<S["archetypes"][K]>

    The row (component) type of the archetype named K on a store / database / service type S. Lets callers name an archetype row without re-spelling its columns — derive instead of re-declare.

    type MainService = Database.Plugin.ToDatabase<typeof mainPlugin>;
    type Track = Database.Archetype.RowOf<MainService, "Track">;
    const t: ReadonlyArchetype<Track> = db.archetypes.Track; // no cast

    Type Parameters

    • S extends { archetypes: Record<string, unknown> }
    • K extends StringKeyof<S["archetypes"]>