melonJS
    Preparing search index...

    Interface CloudStorageOptions

    interface CloudStorageOptions {
        data?: string | Record<string, unknown> | null;
        write: (items: Record<string, string>) => unknown;
    }
    Index
    data?: string | Record<string, unknown> | null

    What the platform loaded: the items a previous session saved, as an object or as that object in JSON. Nothing (undefined, null or an empty string) the first time.

    write: (items: Record<string, string>) => unknown

    Save every item back to the platform. Called with all of them, one call at a time: the next call waits for the promise this one returns.