@fromscratch/store
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,9 +0,9 @@ | ||
export default class Store { | ||
export default class Store<T> { | ||
private data; | ||
private subscriptions; | ||
get: (key: string, defaultValue?: any) => any; | ||
set: (key: string, value: any) => void; | ||
get: (key: string, defaultValue?: T) => T; | ||
set: (key: string, value: T) => void; | ||
delete: (key: string) => void; | ||
subscribe: (key: string, fn: (value?: any) => void) => () => void; | ||
subscribe: (key: string, fn: (value?: T) => void) => () => void; | ||
private unsubscribe; | ||
} |
{ | ||
"name": "@fromscratch/store", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The simplest store", | ||
@@ -27,4 +27,4 @@ "main": "dist/store.js", | ||
"test": "jest", | ||
"publish": "yarn build; npm publish" | ||
"package:publish": "yarn build; npm publish" | ||
} | ||
} |
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
3408