nanostores
Advanced tools
Comparing version 0.4.4 to 0.4.5
type AllKeys<T> = T extends any ? keyof T : never | ||
type Get<T, K> = Extract<T, { [K1 in K]: any }>[K]; | ||
@@ -83,3 +84,3 @@ export interface MapStore<Value extends object = any> { | ||
*/ | ||
setKey<Key extends keyof Value>(key: Key, value: Value[Key]): void | ||
setKey<Key extends AllKeys<Value>>(key: Key, value: Get<Value, Key>): void | ||
@@ -96,3 +97,3 @@ /** | ||
*/ | ||
notify(key: keyof Value): void | ||
notify(key: AllKeys<Value>): void | ||
} | ||
@@ -99,0 +100,0 @@ |
{ | ||
"name": "nanostores", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "A tiny (172 bytes) state manager for React/Preact/Vue/Svelte with many atomic tree-shakable stores", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41036
939