From 28817f4d42d7cf77efb03a2e74317f318ae82559 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Mon, 28 Mar 2022 14:15:57 +0200 Subject: [PATCH 1/2] fix: `multiRemove` should accept `readonly string[]` --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index a4e543da..b1717518 100644 --- a/src/types.ts +++ b/src/types.ts @@ -143,7 +143,7 @@ export type AsyncStorageStatic = { * * See https://react-native-async-storage.github.io/async-storage/docs/api#multiremove */ - multiRemove: (keys: string[], callback?: MultiCallback) => Promise; + multiRemove: (keys: readonly string[], callback?: MultiCallback) => Promise; /** * Batch operation to merge in existing and new values for a given set of From 254cf15aa4b929cc1929141ea038b791045e87f0 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Mon, 28 Mar 2022 14:19:34 +0200 Subject: [PATCH 2/2] prettier --- src/types.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index b1717518..9482a552 100644 --- a/src/types.ts +++ b/src/types.ts @@ -143,7 +143,10 @@ export type AsyncStorageStatic = { * * See https://react-native-async-storage.github.io/async-storage/docs/api#multiremove */ - multiRemove: (keys: readonly string[], callback?: MultiCallback) => Promise; + multiRemove: ( + keys: readonly string[], + callback?: MultiCallback + ) => Promise; /** * Batch operation to merge in existing and new values for a given set of