You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type 'MMKVStorageWrapper' is not assignable to type 'PersistentStorage<PersistedData<NormalizedCacheObject>>'.
Types of property 'setItem' are incompatible.
Type '(key: string, value: string) => void | Promise<void>' is not assignable to type '(key: string, value: PersistedData<NormalizedCacheObject>) => void | Promise<void> | PersistedData<NormalizedCacheObject> | Promise<...>'.
Types of parameters 'value' and 'value' are incompatible.
Type 'PersistedData<NormalizedCacheObject>' is not assignable to type 'string'.
Type 'null' is not assignable to type 'string'.ts(2322)
I believe MMKV can indeed only handle strings using setItem. Not sure the semantics of null here.
The text was updated successfully, but these errors were encountered:
This is an issue introduced in v0.10.0 and is already discussed in #426.
The problem is in type definitions that were generalised in #420, the storage wrapper should work without a problem.
You can @ts-ignore this at the moment, and subscribe to #426 for updates.
The above shows an error on the
storage
property:I believe MMKV can indeed only handle strings using
setItem
. Not sure the semantics of null here.The text was updated successfully, but these errors were encountered: