Skip to content

Commit 4f6953f

Browse files
authored
Merge pull request #60 from erkie/patch-1
Fix TypeScript types: getMultiple returns an array, not an object
2 parents f08c8aa + b61247c commit 4f6953f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ declare module 'react-native-default-preference' {
77
static get(key: string): Promise<string>;
88
static set(key: string, value: string): Promise<void>;
99
static clear(key: string): Promise<void>;
10-
static getMultiple(keys: string[]): Promise<RNDefaultPreferenceKeys>;
10+
static getMultiple(keys: string[]): Promise<string[]>;
1111
static setMultiple(data: RNDefaultPreferenceKeys): Promise<void>;
1212
static clearMultiple(keys: string[]): Promise<void>;
1313
static getAll(): Promise<RNDefaultPreferenceKeys>;

0 commit comments

Comments
 (0)