Skip to content

Commit 1e538b0

Browse files
committed
update tsconfig
1 parent 8a00758 commit 1e538b0

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export class HTMLElement extends Node {
215215
const r = parse(content);
216216
content = r.childNodes.length ? r.childNodes : [new TextNode(content)];
217217
}
218-
this.childNodes = content;
218+
this.childNodes = content as Node[];
219219
}
220220

221221
get outerHTML() {

tsconfig.json

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
2-
"exclude": [
3-
"./dist/"
4-
],
52
"include": [
6-
"./src/**/*.ts"
3+
"./src/"
74
],
85
"compilerOptions": {
96
"module": "commonjs",
@@ -15,10 +12,7 @@
1512
"strictNullChecks": false,
1613
"noImplicitThis": true,
1714
"rootDir": "./src/",
18-
"rootDirs": [
19-
"./src/",
20-
"./tests/"
21-
],
15+
"rootDirs": [],
2216
"allowJs": false,
2317
"allowUnreachableCode": false,
2418
"allowUnusedLabels": false,
@@ -27,20 +21,22 @@
2721
"charset": "utf8",
2822
"declaration": true,
2923
"inlineSourceMap": false,
30-
"allowSyntheticDefaultImports": false,
24+
"esModuleInterop": true,
25+
"allowSyntheticDefaultImports": true,
3126
"diagnostics": false,
3227
"emitBOM": false,
3328
"forceConsistentCasingInFileNames": false,
3429
"importHelpers": false,
3530
"inlineSources": false,
3631
"isolatedModules": false,
3732
"lib": [
38-
// "es6",
3933
"esnext"
4034
],
35+
"listFiles": false,
36+
"listEmittedFiles": false,
4137
"locale": "zh_CN",
42-
"newLine": "CRLF",
43-
"noEmit": true,
38+
"newLine": "lf",
39+
"noEmit": false,
4440
"moduleResolution": "node",
4541
"noEmitHelpers": false,
4642
"noEmitOnError": false,
@@ -49,21 +45,20 @@
4945
"maxNodeModuleJsDepth": 0,
5046
"noLib": false,
5147
"outDir": "./dist",
52-
// "outFile": "./dist/tqf",
5348
"noFallthroughCasesInSwitch": false,
5449
"noResolve": false,
55-
"noUnusedLocals": false,
56-
"noUnusedParameters": false,
50+
"noUnusedLocals": true,
51+
"noUnusedParameters": true,
5752
"paths": {},
5853
"preserveConstEnums": false,
5954
"pretty": true,
60-
// "mapRoot": "",
6155
"removeComments": false,
62-
"skipDefaultLibCheck": true, // default false
63-
"skipLibCheck": true, // default false
56+
"skipDefaultLibCheck": true,
57+
"skipLibCheck": true,
6458
"stripInternal": false,
6559
"suppressExcessPropertyErrors": false,
66-
"suppressImplicitAnyIndexErrors": true, // default false
60+
"suppressImplicitAnyIndexErrors": true,
61+
"traceResolution": false,
6762
"typeRoots": [],
6863
"types": [
6964
"node"

0 commit comments

Comments
 (0)