Skip to content

Commit 5eadb1c

Browse files
committed
fix sample
1 parent 6a36a47 commit 5eadb1c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
"declaration": true, /* Generates corresponding '.d.ts' file. */
77
"sourceMap": false, /* Generates corresponding '.map' file. */
88
"outDir": "./dist", /* Redirect output structure to the directory. */
9+
"rootDir": "./src",
910
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
1011
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
1112
"resolveJsonModule": true,
1213
"noUnusedLocals": true, /* Report errors on unused locals. */
1314
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
1415
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
15-
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
16+
"moduleResolution": "bundler", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
1617
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
1718
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
1819
"types": ["node"]

0 commit comments

Comments
 (0)