Download wp-calypso/packages/calypso-e2e/src/global.d.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 746 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/calypso-e2e/src/global.d.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/calypso-e2e/src/global.d.ts
-
curl -L -o global.d.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/calypso-e2e/src/global.d.ts
746 Bytes
| import { Browser } from 'playwright'; | |
| import type { TracksEvent } from './types/editor-tracks.types'; | |
| // Expose global browser initialized in jest-playwright-config/test-environment.ts | |
| declare global { | |
| // Node 16 types removed the NodeJS.Global interface in favor of just using globalThis. | |
| // See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/53669 | |
| // This is the new syntax to modify globalThis. Note, 'let' and 'const' do not work! | |
| // See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#type-checking-for-globalthis | |
| // eslint-disable-next-line no-var | |
| var browser: Browser; | |
| // eslint-disable-next-line no-var | |
| var testFileName: string; | |
| interface Window { | |
| _e2eEventsStack: TracksEvent[]; | |
| } | |
| } | |