Download wp-calypso/packages/browser-data-collector/src/api/network-information.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 186 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/browser-data-collector/src/api/network-information.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/browser-data-collector/src/api/network-information.ts
-
curl -L -o network-information.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/browser-data-collector/src/api/network-information.ts
186 Bytes
| import type { EffectiveConnectionType } from '../global-types'; | |
| export const getEffectiveType = (): EffectiveConnectionType => { | |
| return window.navigator?.connection?.effectiveType; | |
| }; | |