This commit is contained in:
2023-05-30 17:40:38 -04:00
parent 4d26396a8d
commit 605a293052
3 changed files with 3 additions and 4 deletions

View File

@@ -6,6 +6,5 @@
.yarnrc.yml .yarnrc.yml
babel.config.* babel.config.*
jest.config.* jest.config.*
src
tsconfig*.json tsconfig*.json
tslint.json tslint.json

View File

@@ -1 +1 @@
export const responseJson = (response: Response) => response.json(); export const responseJson = (response: Response | undefined) => (response && response.json()) || {};

View File

@@ -13,9 +13,9 @@
"noImplicitReturns": true, "noImplicitReturns": true,
"noImplicitThis": true, "noImplicitThis": true,
"outDir": "lib/", "outDir": "lib/",
"removeComments": true, "removeComments": false,
"rootDirs": ["./", "src/"], "rootDirs": ["./", "src/"],
"sourceMap": false, "sourceMap": true,
"strict": true, "strict": true,
"strictNullChecks": true, "strictNullChecks": true,
"target": "es2017" "target": "es2017"