mirror of
https://github.com/danbulant/node-html-parser
synced 2026-05-27 05:52:01 +00:00
update tsconfig
This commit is contained in:
parent
8a00758b29
commit
1e538b00ab
2 changed files with 15 additions and 20 deletions
|
|
@ -215,7 +215,7 @@ export class HTMLElement extends Node {
|
||||||
const r = parse(content);
|
const r = parse(content);
|
||||||
content = r.childNodes.length ? r.childNodes : [new TextNode(content)];
|
content = r.childNodes.length ? r.childNodes : [new TextNode(content)];
|
||||||
}
|
}
|
||||||
this.childNodes = content;
|
this.childNodes = content as Node[];
|
||||||
}
|
}
|
||||||
|
|
||||||
get outerHTML() {
|
get outerHTML() {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
{
|
{
|
||||||
"exclude": [
|
|
||||||
"./dist/"
|
|
||||||
],
|
|
||||||
"include": [
|
"include": [
|
||||||
"./src/**/*.ts"
|
"./src/"
|
||||||
],
|
],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
|
|
@ -15,10 +12,7 @@
|
||||||
"strictNullChecks": false,
|
"strictNullChecks": false,
|
||||||
"noImplicitThis": true,
|
"noImplicitThis": true,
|
||||||
"rootDir": "./src/",
|
"rootDir": "./src/",
|
||||||
"rootDirs": [
|
"rootDirs": [],
|
||||||
"./src/",
|
|
||||||
"./tests/"
|
|
||||||
],
|
|
||||||
"allowJs": false,
|
"allowJs": false,
|
||||||
"allowUnreachableCode": false,
|
"allowUnreachableCode": false,
|
||||||
"allowUnusedLabels": false,
|
"allowUnusedLabels": false,
|
||||||
|
|
@ -27,7 +21,8 @@
|
||||||
"charset": "utf8",
|
"charset": "utf8",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"inlineSourceMap": false,
|
"inlineSourceMap": false,
|
||||||
"allowSyntheticDefaultImports": false,
|
"esModuleInterop": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
"diagnostics": false,
|
"diagnostics": false,
|
||||||
"emitBOM": false,
|
"emitBOM": false,
|
||||||
"forceConsistentCasingInFileNames": false,
|
"forceConsistentCasingInFileNames": false,
|
||||||
|
|
@ -35,12 +30,13 @@
|
||||||
"inlineSources": false,
|
"inlineSources": false,
|
||||||
"isolatedModules": false,
|
"isolatedModules": false,
|
||||||
"lib": [
|
"lib": [
|
||||||
// "es6",
|
|
||||||
"esnext"
|
"esnext"
|
||||||
],
|
],
|
||||||
|
"listFiles": false,
|
||||||
|
"listEmittedFiles": false,
|
||||||
"locale": "zh_CN",
|
"locale": "zh_CN",
|
||||||
"newLine": "CRLF",
|
"newLine": "lf",
|
||||||
"noEmit": true,
|
"noEmit": false,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"noEmitHelpers": false,
|
"noEmitHelpers": false,
|
||||||
"noEmitOnError": false,
|
"noEmitOnError": false,
|
||||||
|
|
@ -49,21 +45,20 @@
|
||||||
"maxNodeModuleJsDepth": 0,
|
"maxNodeModuleJsDepth": 0,
|
||||||
"noLib": false,
|
"noLib": false,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
// "outFile": "./dist/tqf",
|
|
||||||
"noFallthroughCasesInSwitch": false,
|
"noFallthroughCasesInSwitch": false,
|
||||||
"noResolve": false,
|
"noResolve": false,
|
||||||
"noUnusedLocals": false,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": false,
|
"noUnusedParameters": true,
|
||||||
"paths": {},
|
"paths": {},
|
||||||
"preserveConstEnums": false,
|
"preserveConstEnums": false,
|
||||||
"pretty": true,
|
"pretty": true,
|
||||||
// "mapRoot": "",
|
|
||||||
"removeComments": false,
|
"removeComments": false,
|
||||||
"skipDefaultLibCheck": true, // default false
|
"skipDefaultLibCheck": true,
|
||||||
"skipLibCheck": true, // default false
|
"skipLibCheck": true,
|
||||||
"stripInternal": false,
|
"stripInternal": false,
|
||||||
"suppressExcessPropertyErrors": false,
|
"suppressExcessPropertyErrors": false,
|
||||||
"suppressImplicitAnyIndexErrors": true, // default false
|
"suppressImplicitAnyIndexErrors": true,
|
||||||
|
"traceResolution": false,
|
||||||
"typeRoots": [],
|
"typeRoots": [],
|
||||||
"types": [
|
"types": [
|
||||||
"node"
|
"node"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue