SheetXL - v0.3.20
    Preparing search index...

    Interface IPersistScope<J>

    A transient scope for items to ids that can be used for references.

    interface IPersistScope<J = any> {
        add(item: J | JSONSerializableAsync<J>): number;
        at(id: number): J | JSONSerializableAsync<J>;
        endPersist(): void;
        fromJSON(json: J[]): void;
        toJSONAsync(): Promise<J[]>;
    }

    Type Parameters

    • J = any
    Index

    Methods

    • For a shared string this will return a number that can be used to reference the item in the persisted json.

      Parameters

      Returns number

    • Called when done persisting.

      Returns void

    • Loads the json.

      Parameters

      • json: J[]

      Returns void

    • Return a array of resources that have been added via add.

      Returns Promise<J[]>

      This can be called multiple times..