|
13 | 13 | /* Language and Environment */ |
14 | 14 | "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
15 | 15 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ |
16 | | - "jsx": "preserve", /* Specify what JSX code is generated. */ |
| 16 | + "jsx": "preserve", /* Specify what JSX code is generated. */ |
17 | 17 | // "libReplacement": true, /* Enable lib replacement. */ |
18 | 18 | // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ |
19 | 19 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ |
|
26 | 26 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ |
27 | 27 |
|
28 | 28 | /* Modules */ |
29 | | - "module": "commonjs", /* Specify what module code is generated. */ |
| 29 | + "module": "CommonJS", /* Specify what module code is generated. */ |
30 | 30 | // "rootDir": "./", /* Specify the root folder within your source files. */ |
31 | 31 | // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ |
32 | 32 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ |
33 | 33 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ |
34 | 34 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ |
35 | 35 | // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ |
36 | | - // "types": [], /* Specify type package names to be included without being referenced in a source file. */ |
| 36 | + "types": ["jest"], /* Specify type package names to be included without being referenced in a source file. */ |
37 | 37 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ |
38 | 38 | // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ |
39 | 39 | // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ |
|
52 | 52 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ |
53 | 53 |
|
54 | 54 | /* Emit */ |
55 | | - "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
| 55 | + "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
56 | 56 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */ |
57 | 57 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ |
58 | 58 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ |
59 | 59 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ |
60 | 60 | // "noEmit": true, /* Disable emitting files from a compilation. */ |
61 | 61 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ |
62 | | - "outDir": "./dist", /* Specify an output folder for all emitted files. */ |
| 62 | + "outDir": "./dist", /* Specify an output folder for all emitted files. */ |
63 | 63 | // "removeComments": true, /* Disable emitting comments. */ |
64 | 64 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ |
65 | 65 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ |
|
108 | 108 |
|
109 | 109 | /* Completeness */ |
110 | 110 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ |
111 | | - "skipLibCheck": true /* Skip type checking all .d.ts files. */ |
| 111 | + "skipLibCheck": true, /* Skip type checking all .d.ts files. */ |
| 112 | + "lib": ["es2017", "dom"], |
112 | 113 | } |
113 | 114 | } |
0 commit comments