@zag-js/store
Advanced tools
Comparing version 0.0.0-dev-20221103102301 to 0.0.0-dev-20221212123305
@@ -5,9 +5,9 @@ interface AsRef { | ||
declare function ref<T extends object>(o: T): T & AsRef; | ||
declare type Path = (string | symbol)[]; | ||
declare type Op = [op: "set", path: Path, value: unknown, prevValue: unknown] | [op: "delete", path: Path, prevValue: unknown] | [op: "resolve", path: Path, value: unknown] | [op: "reject", path: Path, error: unknown]; | ||
type Path = (string | symbol)[]; | ||
type Op = [op: "set", path: Path, value: unknown, prevValue: unknown] | [op: "delete", path: Path, prevValue: unknown] | [op: "resolve", path: Path, value: unknown] | [op: "reject", path: Path, error: unknown]; | ||
declare function proxy<T extends object>(initialObject?: T): T; | ||
declare function getVersion(proxyObject: unknown): number | undefined; | ||
declare function subscribe<T extends object>(proxyObject: T, callback: (ops: Op[]) => void, notifyInSync?: boolean): () => void; | ||
declare type AnyFunction = (...args: any[]) => any; | ||
declare type Snapshot<T> = T extends AnyFunction ? T : T extends AsRef ? T : T extends Promise<infer V> ? Snapshot<V> : { | ||
type AnyFunction = (...args: any[]) => any; | ||
type Snapshot<T> = T extends AnyFunction ? T : T extends AsRef ? T : T extends Promise<infer V> ? Snapshot<V> : { | ||
readonly [K in keyof T]: Snapshot<T[K]>; | ||
@@ -14,0 +14,0 @@ }; |
{ | ||
"name": "@zag-js/store", | ||
"version": "0.0.0-dev-20221103102301", | ||
"version": "0.0.0-dev-20221212123305", | ||
"description": "The reactive store package for zag machines", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
20750