@nexcodepl/store
Advanced tools
+6
-2
@@ -8,3 +8,3 @@ export type Primitive = string | number | boolean | bigint | symbol | undefined | null; | ||
| export type StoreSubscriberUnsubscribeFunction = () => void; | ||
| export type StoreEffectDependencies = StoreReadonly<unknown>[]; | ||
| export type StoreEffectDependencies = StoreReadonlyExt<unknown>[]; | ||
| export type StoreEffectDestructor = () => void; | ||
@@ -16,5 +16,9 @@ export type StoreEffectFunction = () => void | StoreEffectDestructor; | ||
| } | ||
| export interface StoreReadonly<T> { | ||
| export interface StoreReadonlyExt<T> { | ||
| current(): ReadonlyExt<T>; | ||
| subscribe(subscriber: StoreSubscriber<T>): StoreSubscriberUnsubscribeFunction; | ||
| } | ||
| export interface StoreReadonly<T> { | ||
| current(): Readonly<T>; | ||
| subscribe(subscriber: StoreSubscriber<T>): StoreSubscriberUnsubscribeFunction; | ||
| } |
+2
-2
| { | ||
| "name": "@nexcodepl/store", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "description": "State management library", | ||
@@ -18,3 +18,3 @@ "main": "./dist/index.js", | ||
| "scripts": { | ||
| "build": "yarn tsc", | ||
| "build": "yarn tsc --build --force", | ||
| "format": "yarn prettier --write \"src/**/*.ts\"", | ||
@@ -21,0 +21,0 @@ "lint": "yarn eslint . --ext .ts", |
7873
2.22%156
2.63%