From 5036ca68e53f05e48ef845bd5080189495daf8a9 Mon Sep 17 00:00:00 2001 From: Max Hung Date: Mon, 9 May 2022 21:43:58 +1200 Subject: [PATCH] fix: `multiGet` accepts read-only array --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 9482a552..f68a3b08 100644 --- a/src/types.ts +++ b/src/types.ts @@ -123,7 +123,7 @@ export type AsyncStorageStatic = { * See https://react-native-async-storage.github.io/async-storage/docs/api#multiget */ multiGet: ( - keys: string[], + keys: readonly string[], callback?: MultiGetCallback ) => Promise;