atomic-state
Advanced tools
Comparing version 2.7.7 to 2.7.8
@@ -173,9 +173,18 @@ /** @license Atomic State | ||
*/ | ||
export declare function createStore<R>(config?: Partial<Atom<R>>): () => R & ActionsObjectType<{ | ||
setPartialvalue: Partial<R> | ((v: Required<R>) => Partial<R>); | ||
setValue: R | ((v: Required<R>) => R); | ||
reset: any; | ||
} & { | ||
[key: string]: any; | ||
}>; | ||
export declare function createStore<R>(config?: Partial<Atom<R>>): { | ||
(): R & ActionsObjectType<{ | ||
setPartialvalue: Partial<R> | ((v: Required<R>) => Partial<R>); | ||
setValue: R | ((v: Required<R>) => R); | ||
reset: any; | ||
} & { | ||
[key: string]: any; | ||
}>; | ||
atom: Atom<R, { | ||
setPartialvalue: Partial<R> | ((v: Required<R>) => Partial<R>); | ||
setValue: R | ((v: Required<R>) => R); | ||
reset: any; | ||
} & { | ||
[key: string]: any; | ||
}> | Selector<R>; | ||
}; | ||
/** | ||
@@ -182,0 +191,0 @@ * Get an atom's value |
{ | ||
"name": "atomic-state", | ||
"version": "2.7.7", | ||
"version": "2.7.8", | ||
"description": "Atomic State is a state management library for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
712012
1896