recoil-nexus
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -1,5 +0,5 @@ | ||
import { RecoilState } from 'recoil'; | ||
import { RecoilValue, RecoilState } from 'recoil'; | ||
export default function RecoilNexus(): null; | ||
export declare function getRecoil<T>(atom: RecoilState<T>): T; | ||
export declare function getRecoilPromise<T>(atom: RecoilState<T>): Promise<T>; | ||
export declare function setRecoil<T>(atom: RecoilState<T>, value: T): void; | ||
export declare function getRecoil<T>(atom: RecoilValue<T>): T; | ||
export declare function getRecoilPromise<T>(atom: RecoilValue<T>): Promise<T>; | ||
export declare function setRecoil<T>(atom: RecoilState<T>, valOrUpdater: T | ((currVal: T) => T)): void; |
@@ -28,5 +28,5 @@ import { useRecoilCallback } from 'recoil'; | ||
} | ||
export function setRecoil(atom, value) { | ||
nexus.set(atom, value); | ||
export function setRecoil(atom, valOrUpdater) { | ||
nexus.set(atom, valOrUpdater); | ||
} | ||
//# sourceMappingURL=RecoilNexus.js.map |
{ | ||
"name": "recoil-nexus", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "A small Typescript package to access your Recoil atoms outside of React components.", | ||
@@ -5,0 +5,0 @@ "main": "build/RecoilNexus.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
6935