Upgrade typescript

This commit is contained in:
Aria Minaei 2023-08-08 08:43:24 +02:00
parent cb6693413f
commit cfb324a6d5
24 changed files with 57 additions and 41 deletions

View file

@ -25,6 +25,6 @@
"@types/react": "^18.0.25",
"esbuild": "^0.15.15",
"esbuild-register": "^3.4.1",
"typescript": "4.6.4"
"typescript": "5.1.6"
}
}

View file

@ -25,7 +25,7 @@
"esbuild": "^0.12.15",
"esbuild-register": "^2.5.0",
"npm-run-all": "^4.1.5",
"typescript": "4.6.4"
"typescript": "5.1.6"
},
"peerDependencies": {
"@theatre/core": "*",

View file

@ -18,7 +18,7 @@
"@types/lodash-es": "^4.17.4",
"@types/node": "^15.6.2",
"@types/react": "^17.0.9",
"typescript": "4.6.4"
"typescript": "5.1.6"
},
"dependencies": {
"lodash-es": "^4.17.21"

View file

@ -35,7 +35,7 @@
"esbuild": "^0.12.15",
"esbuild-register": "^2.5.0",
"npm-run-all": "^4.1.5",
"typescript": "4.6.4"
"typescript": "5.1.6"
},
"dependencies": {
"lodash-es": "^4.17.21"

View file

@ -696,7 +696,7 @@ describe(`The exhaustive guide to dataverse`, () => {
// Let's create a function that will set a property of an object by a pointer, similar to `lodash.set()`.
// The function will take the root object, the pointer, and the new value.
function setByPointer<Root, Value>(
function setByPointer<Root extends {}, Value>(
root: Root,
getPointer: (ptr: Pointer<Root>) => Pointer<Value>,
newValue: Value,

View file

@ -233,7 +233,7 @@ class PrismInstance<V> implements Prism<V> {
}
// let's cache the last value so we don't call the listener if the value hasn't changed
let lastValue =
let lastValue: V | typeof emptyObject =
// use an empty object as the initial value so that the listener is called on the first tick.
// if we were to use, say, undefined, and this.getValue() also returned undefined, the listener
// would never be called.

View file

@ -39,7 +39,7 @@
"styled-components": "^5.3.11",
"theatric": "workspace:*",
"three": "^0.155.0",
"typescript": "4.6.4",
"typescript": "5.1.6",
"vite": "^4.3.9"
}
}

View file

@ -73,7 +73,7 @@
"styled-components": "^5.3.11",
"three": "0.155.0",
"three-stdlib": "^2.24.1",
"typescript": "4.6.4",
"typescript": "5.1.6",
"zustand": "^3.5.1"
},
"peerDependencies": {

View file

@ -37,7 +37,7 @@
"esbuild": "^0.12.15",
"esbuild-register": "^2.5.0",
"npm-run-all": "^4.1.5",
"typescript": "4.6.4"
"typescript": "5.1.6"
},
"dependencies": {
"@theatre/dataverse": "workspace:*",

View file

@ -37,7 +37,7 @@
"esbuild-register": "^2.5.0",
"lodash-es": "^4.17.21",
"npm-run-all": "^4.1.5",
"typescript": "4.6.4"
"typescript": "5.1.6"
},
"dependencies": {
"@theatre/core": "workspace:*",