Files
babel/lib/libdom-minimal.d.ts
Huáng JùnliàngandGitHub 65e63de3d5 Type checking babel-types scripts (#17494)
* chore: enbale ts-check on babel-types scripts

* polish: make Validator distributive

* fix: chainOf should not rely on the ["any"] return

* suppress Babel 8 typing errors

* chore: add scripts to babel-types ts project

* migrate babel-types scripts to TS

* refactor: replace toFunctionName by formatBuilderName

* Update packages/babel-types/scripts/generators/ast-types.ts

* misc cleanup

* remove JSDoc param type definitions
2025-09-05 12:12:30 -04:00

10 lines
503 B
TypeScript

// Minimal version of lib.dom.d.ts. @babel/standalone needs these types
// to be defined, but we don't want to load the full lib.dom.d.ts in
// tsconfig.dts-bundles.json because we don't want other .d.ts files to
// accidentally rely on DOM features.
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-object-type
declare interface HTMLCollectionOf<T> {}
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
declare interface HTMLScriptElement {}