Plants vs. Zombies: Replanted - v1.0.3
    Preparing search index...

    Interface IPersistor

    a persistor is used to hook a data file into the store. This way any data file can be made available through the store and updated through actions, as long as it can be represented in json

    IPersistor

    interface IPersistor {
        getAllKeys(): Bluebird<PersistorKey[]>;
        getAllKVs?(
            prefix?: string,
        ): Bluebird<{ key: PersistorKey; value: string }[]>;
        getItem(key: PersistorKey): Bluebird<string>;
        removeItem(key: PersistorKey): Bluebird<void>;
        setItem(key: PersistorKey, value: string): Bluebird<void>;
        setResetCallback(cb: () => Bluebird<void>): void;
    }
    Index

    Methods

    • Parameters

      • Optionalprefix: string

      Returns Bluebird<{ key: PersistorKey; value: string }[]>

    • Parameters

      Returns void