Skip to content

Commit 77a4f79

Browse files
committed
Fix type inference failure in ObjectValidator under certain circumstances in TS 3.3
1 parent 1ebfe2c commit 77a4f79

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strontium",
3-
"version": "2.8.2",
3+
"version": "2.8.3",
44
"description": "Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects.",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",
@@ -55,7 +55,7 @@
5555
"sinon": "^6.3.4",
5656
"ts-node": "^7.0.1",
5757
"tslint": "^5.11.0",
58-
"typescript": "^3.1.1"
58+
"typescript": "^3.4.3"
5959
},
6060
"dependencies": {
6161
"@types/lodash": "^4.14.117",

src/validation/abstract/ObjectValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export type ObjectValidator = {
55
} & Object
66

77
export type ValidatedObject<O extends ObjectValidator> = {
8-
[P in keyof O]: ValidatorOutput<unknown, O[P]>
8+
[P in keyof O]: ValidatorOutput<any, O[P]>
99
}

0 commit comments

Comments
 (0)