forked from kevinresol/react-native-default-preference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
19 lines (17 loc) · 764 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
declare module 'react-native-default-preference' {
export interface RNDefaultPreferenceKeys {
[key: string]: string;
}
export default class RNDefaultPreference {
static get(key: string): Promise<string>;
static set(key: string, value: string): Promise<void>;
static clear(key: string): Promise<void>;
static getMultiple(keys: string[]): Promise<RNDefaultPreferenceKeys>;
static setMultiple(data: RNDefaultPreferenceKeys): Promise<void>;
static clearMultiple(keys: string[]): Promise<void>;
static getAll(): Promise<RNDefaultPreferenceKeys>;
static clearAll(): Promise<void>;
static getName(): Promise<string>;
static setName(name: string): Promise<void>;
}
}