chore(deps): upgrade to TypeScript 4

This commit is contained in:
Josep M Sobrepere 2021-01-21 14:18:16 +01:00
parent 36950b75cf
commit a0b004a5df
8 changed files with 884 additions and 604 deletions

View File

@ -45,12 +45,19 @@
"husky": "^4.3.7",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1",
"typescript": "^3.9.7",
"typescript": "^4.1.3",
"wsrun": "^5.2.4"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,json,md}": "prettier --write"
},
"resolutions": {
"**/@typescript-eslint/eslint-plugin": "^4.11.1",
"**/@typescript-eslint/parser": "^4.11.1",
"**/jest": "^26.6.3",
"**/ts-jest": "^26.4.4",
"**/typescript": "^4.1.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn lint"

View File

@ -47,7 +47,7 @@
"react-test-renderer": "^17.0.1",
"rxjs": "^6.6.3",
"tsdx": "^0.14.1",
"tslib": "^2.0.3",
"typescript": "^3.9.7"
"tslib": "^2.1.0",
"typescript": "^4.1.3"
}
}

View File

@ -108,13 +108,13 @@ const shareLatest = <T>(
}
if (promise) throw promise
throw (promise = new Promise<T>((res) => {
throw (promise = new Promise<T>((res, rej) => {
const setError = (e: any) => {
error = e
timeoutToken = setTimeout(() => {
error = EMPTY_VALUE
}, 50)
res()
rej(e)
promise = null
}
const pSubs = subject!.subscribe(

View File

@ -48,7 +48,7 @@
"react-test-renderer": "^17.0.1",
"rxjs": "^6.6.3",
"tsdx": "^0.14.1",
"tslib": "^2.0.3",
"typescript": "^3.9.7"
"tslib": "^2.1.0",
"typescript": "^4.1.3"
}
}

View File

@ -48,7 +48,7 @@
"react-test-renderer": "^17.0.1",
"rxjs": "^6.6.3",
"tsdx": "^0.14.1",
"tslib": "^2.0.3",
"typescript": "^3.9.7"
"tslib": "^2.1.0",
"typescript": "^4.1.3"
}
}

View File

@ -51,7 +51,7 @@ describe("collectValues", () => {
})
it("handles synchronous values", () => {
scheduler().run(({ expectObservable, cold }) => {
scheduler().run(({ expectObservable }) => {
const source = from([
{
key: "group1",

View File

@ -7,3 +7,4 @@ export { suspend } from "./suspend"
export { suspended } from "./suspended"
export { switchMapSuspended } from "./switchMapSuspended"
export { selfDependant } from "./selfDependant"
export { contextBinder } from "./contextBinder"

1460
yarn.lock

File diff suppressed because it is too large Load Diff