Download node_modules/@tanstack/react-store/dist/useAtom.d.cts from sitcod3/modul-s: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/react-store/dist/useAtom.d.cts
- Command line
-
hf download hf://spaces/sitcod3/modul-s@c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/@tanstack/react-store/dist/useAtom.d.cts
-
curl -L -o useAtom.d.cts https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/react-store/dist/useAtom.d.cts
587 Bytes
| import { UseSelectorOptions } from "./useSelector.cjs"; | |
| import { Atom } from "@tanstack/store"; | |
| //#region src/useAtom.d.ts | |
| /** | |
| * Returns the current atom value together with a stable setter. | |
| * | |
| * This is the writable-atom convenience hook for components that need to both | |
| * read and update the same atom. | |
| * | |
| * @example | |
| * ```tsx | |
| * const [count, setCount] = useAtom(countAtom) | |
| * ``` | |
| */ | |
| declare function useAtom<TValue>(atom: Atom<TValue>, options?: UseSelectorOptions<TValue>): [TValue, Atom<TValue>['set']]; | |
| //#endregion | |
| export { useAtom }; | |
| //# sourceMappingURL=useAtom.d.cts.map |