Skip to content

Commit

Permalink
fix: multiRemove should accept readonly string[] (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Mar 29, 2022
1 parent 834d67f commit 298bbb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export type AsyncStorageStatic = {
*
* See https://react-native-async-storage.github.io/async-storage/docs/api#multiremove
*/
multiRemove: (keys: string[], callback?: MultiCallback) => Promise<void>;
multiRemove: (
keys: readonly string[],
callback?: MultiCallback
) => Promise<void>;

/**
* Batch operation to merge in existing and new values for a given set of
Expand Down

0 comments on commit 298bbb0

Please sign in to comment.