We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
allowImportingTsExtensions
strict
1 parent d9a9c52 commit 0ea5807Copy full SHA for 0ea5807
src/core/build/types.ts
@@ -200,6 +200,7 @@ export async function writeTypes(nitro: Nitro) {
200
moduleDetection: "force",
201
isolatedModules: true,
202
verbatimModuleSyntax: true,
203
+ allowImportingTsExtensions: true,
204
/* Strictness */
205
strict: nitro.options.typescript.strict,
206
noUncheckedIndexedAccess: true,
src/core/config/defaults.ts
@@ -85,7 +85,7 @@ export const NitroDefaults: NitroConfig = {
85
86
// Advanced
87
typescript: {
88
- strict: false,
+ strict: true,
89
generateTsConfig: true,
90
generateRuntimeConfigTypes: true,
91
tsconfigPath: "types/tsconfig.json",
0 commit comments