Closed azu closed 4 years ago
Currently use <K,V> type for initializing.
<K,V>
export const kvsMemoryStorage = async <K extends KVSStorageKey, V extends JsonValue>( options: KvsLocalStorageOptions<K, V> ): Promise<KvsStorage<K, V>> => { return kvsStorage({ ...options, storage: localstorage }); };
But, Schamea is useful, I Think
Schamea
Reason
Currently use
<K,V>
type for initializing.But,
Schamea
is useful, I ThinkReason
<K,V>
is difficult to use correct type.Related