Download wp-calypso/client/lib/interval/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/interval/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/interval/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/interval/index.ts
393 Bytes
| import { TimeoutMS } from 'calypso/types'; | |
| export { Interval } from './interval'; | |
| export { useInterval } from './use-interval'; | |
| export const EVERY_SECOND: TimeoutMS = 1000; | |
| export const EVERY_FIVE_SECONDS: TimeoutMS = 5 * 1000; | |
| export const EVERY_TEN_SECONDS: TimeoutMS = 10 * 1000; | |
| export const EVERY_THIRTY_SECONDS: TimeoutMS = 30 * 1000; | |
| export const EVERY_MINUTE: TimeoutMS = 60 * 1000; | |