build: use typescript for internal Electron JS code (#16441)

This commit is contained in:
Samuel Attard
2019-02-06 10:27:20 -08:00
committed by GitHub
parent 858781ba83
commit 26df9992cf
19 changed files with 682 additions and 198 deletions

23
tsconfig.json Normal file
View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2017",
"lib": [
"es2017",
"dom",
"dom.iterable"
],
"sourceMap": true,
"experimentalDecorators": false,
"strict": true,
"baseUrl": ".",
"allowJs": true,
"outDir": "ts-gen",
"paths": {
"@electron-internal/*": ["lib"]
}
},
"exclude": [
"electron.d.ts"
]
}