add typescript index file
This commit is contained in:
parent
f540bd21c4
commit
d7770e4cf4
19
index.d.ts
vendored
Normal file
19
index.d.ts
vendored
Normal file
@ -0,0 +1,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<string[]>;
|
||||
static setMultiple(data: RNDefaultPreferenceKeys): Promise<void>;
|
||||
static clearMultiple(keys: string[]): Promise<void>;
|
||||
static getAll(): Promise<string[]>;
|
||||
static clearAll(): Promise<void>;
|
||||
|
||||
static getName(): Promise<string>;
|
||||
static setName(name: string): Promise<void>;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user