fix(@types/xmldom): Move dom from tsconfig to index.d.ts (#45752)

By adding `/// <reference lib="dom" />` to the type definition
[as described in the handbook](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-lib-)
it's no longer required to add `"lib":[...,"dom"]` to the `tsconfig.json`

I also added myself as a maintainer of these types
and fixed the project location to the maintained one.

fixes #26745
https://github.com/xmldom/xmldom
This commit is contained in:
Christian Bewernitz 2020-07-07 01:30:01 +02:00 committed by GitHub
parent 49f15ae107
commit 433cf7ea6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,9 @@
// Type definitions for xmldom 0.1.22
// Project: https://github.com/jindw/xmldom.git
// Project: https://github.com/xmldom/xmldom
// Definitions by: Qubo <https://github.com/tkqubo>
// Karfau <https://github.com/karfau>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference lib="dom" />
declare namespace xmldom {
var DOMParser: DOMParserStatic;

View File

@ -2,8 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,