Skip to content

Commit b61247c

Browse files
authored
Fix TypeScript types: getMultiple returns an array, not an object
1 parent f08c8aa commit b61247c

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)