Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /utils /useLocalStorageState /useLocalStorageState.d.ts
Download frontend/node_modules/@mui/utils/useLocalStorageState/useLocalStorageState.d.ts from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 768 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/utils/useLocalStorageState/useLocalStorageState.d.ts
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@mui/utils/useLocalStorageState/useLocalStorageState.d.ts
-
curl -L -o useLocalStorageState.d.ts https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/utils/useLocalStorageState/useLocalStorageState.d.ts
768 Bytes
| import * as React from 'react'; | |
| type Initializer = () => string | null; | |
| type UseStorageStateHookResult = [ | |
| string | null, | |
| React.Dispatch<React.SetStateAction<string | null>> | |
| ]; | |
| /** | |
| * Sync state to local storage so that it persists through a page refresh. Usage is | |
| * similar to useState except we pass in a storage key so that we can default | |
| * to that value on page load instead of the specified initial value. | |
| * | |
| * Since the storage API isn't available in server-rendering environments, we | |
| * return null during SSR and hydration. | |
| */ | |
| declare function useLocalStorageStateBrowser(key: string | null, initializer?: string | null | Initializer): UseStorageStateHookResult; | |
| declare const _default: typeof useLocalStorageStateBrowser; | |
| export default _default; | |