diff --git a/modules/openapi-generator/src/main/resources/typescript/tsconfig.mustache b/modules/openapi-generator/src/main/resources/typescript/tsconfig.mustache index 41c29f4da44..894b2ef9d3a 100644 --- a/modules/openapi-generator/src/main/resources/typescript/tsconfig.mustache +++ b/modules/openapi-generator/src/main/resources/typescript/tsconfig.mustache @@ -11,6 +11,9 @@ {{/supportsES6}} "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/client/echo_api/typescript/build/tsconfig.json b/samples/client/echo_api/typescript/build/tsconfig.json index 98956dc9c6c..953996de397 100644 --- a/samples/client/echo_api/typescript/build/tsconfig.json +++ b/samples/client/echo_api/typescript/build/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/client/others/typescript/builds/array-of-lists/tsconfig.json b/samples/client/others/typescript/builds/array-of-lists/tsconfig.json index b5f1ee70e9c..d6a3507bd4c 100644 --- a/samples/client/others/typescript/builds/array-of-lists/tsconfig.json +++ b/samples/client/others/typescript/builds/array-of-lists/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/client/others/typescript/builds/enum-single-value/tsconfig.json b/samples/client/others/typescript/builds/enum-single-value/tsconfig.json index b5f1ee70e9c..d6a3507bd4c 100644 --- a/samples/client/others/typescript/builds/enum-single-value/tsconfig.json +++ b/samples/client/others/typescript/builds/enum-single-value/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/client/others/typescript/builds/null-types-simple/tsconfig.json b/samples/client/others/typescript/builds/null-types-simple/tsconfig.json index b5f1ee70e9c..d6a3507bd4c 100644 --- a/samples/client/others/typescript/builds/null-types-simple/tsconfig.json +++ b/samples/client/others/typescript/builds/null-types-simple/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/client/others/typescript/builds/with-unique-items/tsconfig.json b/samples/client/others/typescript/builds/with-unique-items/tsconfig.json index b5f1ee70e9c..d6a3507bd4c 100644 --- a/samples/client/others/typescript/builds/with-unique-items/tsconfig.json +++ b/samples/client/others/typescript/builds/with-unique-items/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/client/others/typescript/encode-decode/build/tsconfig.json b/samples/client/others/typescript/encode-decode/build/tsconfig.json index 98956dc9c6c..953996de397 100644 --- a/samples/client/others/typescript/encode-decode/build/tsconfig.json +++ b/samples/client/others/typescript/encode-decode/build/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/tsconfig.json b/samples/openapi3/client/petstore/typescript/builds/browser/tsconfig.json index 4f23fa5addd..43b5ae9e8b2 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/tsconfig.json +++ b/samples/openapi3/client/petstore/typescript/builds/browser/tsconfig.json @@ -6,6 +6,9 @@ "esModuleInterop": true, "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/tsconfig.json b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/tsconfig.json index b5f1ee70e9c..d6a3507bd4c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/tsconfig.json +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/openapi3/client/petstore/typescript/builds/default/tsconfig.json b/samples/openapi3/client/petstore/typescript/builds/default/tsconfig.json index 98956dc9c6c..953996de397 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/tsconfig.json +++ b/samples/openapi3/client/petstore/typescript/builds/default/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/tsconfig.json b/samples/openapi3/client/petstore/typescript/builds/explode-query/tsconfig.json index 98956dc9c6c..953996de397 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/tsconfig.json +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/tsconfig.json b/samples/openapi3/client/petstore/typescript/builds/inversify/tsconfig.json index cc0b2b2a379..047850335fa 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/tsconfig.json +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/tsconfig.json @@ -6,6 +6,9 @@ "esModuleInterop": true, "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/tsconfig.json b/samples/openapi3/client/petstore/typescript/builds/jquery/tsconfig.json index b5f1ee70e9c..d6a3507bd4c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/tsconfig.json +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/openapi3/client/petstore/typescript/builds/nullable-enum/tsconfig.json b/samples/openapi3/client/petstore/typescript/builds/nullable-enum/tsconfig.json index b5f1ee70e9c..d6a3507bd4c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/nullable-enum/tsconfig.json +++ b/samples/openapi3/client/petstore/typescript/builds/nullable-enum/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!) diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/tsconfig.json b/samples/openapi3/client/petstore/typescript/builds/object_params/tsconfig.json index 98956dc9c6c..953996de397 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/tsconfig.json +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/tsconfig.json @@ -5,6 +5,9 @@ "target": "es5", "moduleResolution": "node", "declaration": true, + "typeRoots": [ + "node_modules/@types" + ], /* Additional Checks */ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!)