Skip to content

Commit bca8c49

Browse files
authored
Merge pull request #5 from elastic/emit-typescript
Add support for typescript interface code generation
2 parents b8969fc + b811a8b commit bca8c49

File tree

28 files changed

+16598
-356
lines changed

28 files changed

+16598
-356
lines changed

output/typescript/tsconfig.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2019",
4+
"module": "commonjs",
5+
"esModuleInterop": true,
6+
"moduleResolution": "node",
7+
"isolatedModules": false,
8+
"jsx": "react",
9+
"experimentalDecorators": true,
10+
"emitDecoratorMetadata": true,
11+
"declaration": true,
12+
"noImplicitAny": false,
13+
"removeComments": true,
14+
"noLib": false,
15+
"preserveConstEnums": true,
16+
"sourceMap": true,
17+
"suppressImplicitAnyIndexErrors": true
18+
},
19+
"compileOnSave": true,
20+
"buildOnSave": true,
21+
"include": [
22+
"*.ts"
23+
],
24+
"typeAcquisition": {
25+
"enable": true
26+
}
27+
}

output/typescript/tslint.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"extends": "tslint:recommended",
3+
"rules": {
4+
"max-line-length": { "options": [160] },
5+
"no-conditional-assignment": true,
6+
"no-consecutive-blank-lines": true,
7+
"member-ordering": [false],
8+
"object-literal-sort-keys": false,
9+
"trailing-comma": [true, {"multiline": "ignore", "singleline": "never"}],
10+
"object-literal-key-quotes": [true, "as-needed"],
11+
"curly": [true, "as-needed"],
12+
"member-access": [true, "no-public"],
13+
"ordered-imports": false,
14+
"only-arrow-functions": true,
15+
"arrow-parens": [true, "ban-single-arg-parens"],
16+
"interface-over-type-literal": false,
17+
"no-console": {
18+
"severity": "warning",
19+
"options": [
20+
"debug",
21+
"info",
22+
"log",
23+
"time",
24+
"timeEnd",
25+
"trace"
26+
]
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)