react-native-onyx
Version:
State management for React Native
19 lines (18 loc) • 651 B
TypeScript
/**
* The SQLiteStorage provider stores everything in a key/value store by
* converting the value to a JSON string
*/
import type { NitroSQLiteConnection } from 'react-native-nitro-sqlite';
import type StorageProvider from './types';
/**
* The type of the key-value pair stored in the SQLite database
* @property record_key - the key of the record
* @property valueJSON - the value of the record in JSON string format
*/
type OnyxSQLiteKeyValuePair = {
record_key: string;
valueJSON: string;
};
declare const provider: StorageProvider<NitroSQLiteConnection | undefined>;
export default provider;
export type { OnyxSQLiteKeyValuePair };