-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtsconfig.json
More file actions
27 lines (27 loc) · 941 Bytes
/
tsconfig.json
File metadata and controls
27 lines (27 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"files": [
"./x-element.js",
"./x-parser.js",
"./x-template.js"
],
"compilerOptions": {
"target": "ESNext",
// Beyond just organization, a “bug” in how JSDocs works causes a cyclic
// import to be detected by TypeScript when letting generated “*.d.ts”
// sit next to files.
"outDir": "types",
"allowJs": true,
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
// Even though the docs suggest that “declarationMap” is a way to go from
// generated-js back to ts… it also seems to be the case that it will help
// IDEs get to the right _js_ when using types. See
// https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html
"declarationMap": true,
"noEmitOnError": true,
"module": "NodeNext", // Approximates browser target.
// TODO: #357: Fix implicit any types.
"noImplicitAny": false
}
}