npm install --save @types/sync-storage
This package contains type definitions for sync-storage (https://github.com/raphaelpor/sync-storage).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sync-storage.
/*
* Init prepares the SyncStorage to work synchronously, by getting all values for all keys previously saved on RN AsyncStorage.
*/
export function init(): Promise<any[]>;
/*
* Returns value of key
*/
export function get(key: string): any;
/*
* Saves value in memory and AsyncStorage. Also returns a promise for verification.
*/
export function set(key: string, value: any): Promise<void>;
/*
* Removes value from memory and AsyncStorage. Also returns a promise.
*/
export function remove(key: string): Promise<void>;
/*
* Returns all stored keys in an array.
*/
export function getAllKeys(): any[];
export as namespace SyncStorage;
- Last updated: Tue, 17 Sep 2024 18:09:19 GMT
- Dependencies: none
These definitions were written by Dannomac.