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

    Interface ReadonlyArchetype<C>

    interface ReadonlyArchetype<C = {}> {
        columns: {
            readonly [K in string | number | symbol]: ReadonlyTypedBuffer<
                (C & RequiredComponents)[K],
            >
        };
        components: ComponentSet<Extract<keyof C, string>>;
        id: number;
        rowCapacity: number;
        rowCount: number;
        toData: (copy?: boolean, omit?: ReadonlySet<string>) => unknown;
    }

    Type Parameters

    • C = {}

    Hierarchy (View Summary)

    Index

    Properties

    columns: {
        readonly [K in string | number | symbol]: ReadonlyTypedBuffer<
            (C & RequiredComponents)[K],
        >
    }
    components: ComponentSet<Extract<keyof C, string>>
    id: number
    rowCapacity: number
    rowCount: number
    toData: (copy?: boolean, omit?: ReadonlySet<string>) => unknown

    Serialize the archetype. When copy is true each column buffer is detached (.copy()) so the snapshot survives later mutation of the live archetype; otherwise the snapshot references the live column buffers (faster, but only valid until the next mutation).

    omit names columns to exclude from the snapshot (e.g. nonPersistent components). fromData rebuilds any omitted column fresh, so the archetype stays structurally intact.