Skip to content

Commit 68031f7

Browse files
lukewlmsKrzysztof Borowy
authored and
Krzysztof Borowy
committed
fix: update TS types for multiGet
Per issue: #58 `multiGet` types should allow returning `string | null`, not just string.
1 parent 99fcb40 commit 68031f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ declare module '@react-native-community/async-storage' {
5151
*/
5252
multiGet(
5353
keys: string[],
54-
callback?: (errors?: Error[], result?: [string, string][]) => void
55-
): Promise<[string, string][]>;
54+
callback?: (errors?: Error[], result?: [string, string | null][]) => void
55+
): Promise<[string, string | null][]>;
5656

5757
/**
5858
* multiSet and multiMerge take arrays of key-value array pairs that match the output of multiGet,

0 commit comments

Comments
 (0)