mirror of
https://github.com/re-rxjs/react-rxjs.git
synced 2025-12-08 18:01:51 +00:00
chore(deps): upgrade to TypeScript 4
This commit is contained in:
parent
36950b75cf
commit
a0b004a5df
@ -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"
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ describe("collectValues", () => {
|
||||
})
|
||||
|
||||
it("handles synchronous values", () => {
|
||||
scheduler().run(({ expectObservable, cold }) => {
|
||||
scheduler().run(({ expectObservable }) => {
|
||||
const source = from([
|
||||
{
|
||||
key: "group1",
|
||||
|
||||
@ -7,3 +7,4 @@ export { suspend } from "./suspend"
|
||||
export { suspended } from "./suspended"
|
||||
export { switchMapSuspended } from "./switchMapSuspended"
|
||||
export { selfDependant } from "./selfDependant"
|
||||
export { contextBinder } from "./contextBinder"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user