Skip to content

Commit 065eceb

Browse files
nikatlasmacjohnny
andauthored
[Typescript] add missing typeRoots config on tsconfig (#21824)
* add missing typeRoots config on tsconfig * add samples * Apply suggestion from @macjohnny Co-authored-by: Esteban Gehring <[email protected]> * update samples --------- Co-authored-by: Esteban Gehring <[email protected]>
1 parent 8ce639d commit 065eceb

File tree

15 files changed

+45
-0
lines changed

15 files changed

+45
-0
lines changed

modules/openapi-generator/src/main/resources/typescript/tsconfig.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
{{/supportsES6}}
1212
"moduleResolution": "node",
1313
"declaration": true,
14+
"typeRoots": [
15+
"node_modules/@types"
16+
],
1417

1518
/* Additional Checks */
1619
"noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!)

samples/client/echo_api/typescript/build/tsconfig.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/array-of-lists/tsconfig.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/enum-single-value/tsconfig.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/null-types-simple/tsconfig.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/with-unique-items/tsconfig.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/encode-decode/build/tsconfig.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/openapi3/client/petstore/typescript/builds/browser/tsconfig.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/openapi3/client/petstore/typescript/builds/composed-schemas/tsconfig.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/openapi3/client/petstore/typescript/builds/default/tsconfig.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)