Skip to content

Commit 6e85ec7

Browse files
authored
Merge pull request #3 from UK-Export-Finance/feat/tsconfig
feat(tsconfig) - additional TS config settings, feat(types) empty directory/file
2 parents 86d4f21 + eab31bd commit 6e85ec7

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

tsconfig.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,31 @@
44

55
/* Basic Options */
66
"target": "ESNEXT" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
7-
"module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
7+
"module": "CommonJS", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
88
"declaration": true, /* Generates corresponding '.d.ts' file. */
99
"outDir": "./lib/esm", /* Redirect output structure to the directory. */
10+
"lib": ["dom", "esnext"],
1011

11-
/* Strict Type-Checking Options */
12-
"strict": true /* Enable all strict type-checking options. */,
12+
/* Type Checking Options */
13+
"strict": true /* Enable all strict type-checking options. */,
14+
"noPropertyAccessFromIndexSignature": false, /* Allow access to an object's property with dot notation. */
1315

1416
/* Module Resolution Options */
1517
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
1618
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
1719

20+
/* Backwards Compatibility Options */
21+
"suppressImplicitAnyIndexErrors": true, /* Suppress errors for accessing an object's property with dot notation. */
22+
1823
/* Experimental Options */
1924
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
20-
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
25+
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
26+
27+
"baseUrl": "./src/",
28+
"paths": {
29+
"*": ["types/*", "node_modules/@types"]
30+
},
31+
"importHelpers": true
2132
},
2233
"include": ["src/"],
2334
"exclude": ["node_modules"]

types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

0 commit comments

Comments
 (0)