const entries = [['key', 'val']].map(([k, v]) => [k, v] as const)
AsyncStorage.multiSet(entries);
// ~~~~~~~
// Argument of type '(readonly [string, string])[]' is not assignable to parameter of type '[string, string][]'.
// The type 'readonly [string, string]' is 'readonly' and cannot be assigned to the mutable type '[string, string]'
What happened?
At current,
(readonly [string, string])[]
is going to be rejected bymultiSet
because its function signature is the following:It should be the following:
Version
1.23.1
What platforms are you seeing this issue on?
System Information
Steps to Reproduce