Skip to content

Commit

Permalink
chore: update typescript to 5.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoniangreen committed Apr 1, 2024
1 parent 5370b84 commit 32fb40e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -104,7 +104,7 @@
"rollup-plugin-terser": "^7.0.2",
"ts-node": "^10.9.2",
"tsify": "^5.0.4",
"typescript": "^4.9.5"
"typescript": "^5.4.3"
},
"collective": {
"type": "opencollective",
Expand Down
2 changes: 1 addition & 1 deletion spec/types/async-validate.spec.ts
Expand Up @@ -110,7 +110,7 @@ describe("$async validation and type guards", () => {
let result: boolean | Promise<Foo>
if ((result = validate(data))) {
if (typeof result == "boolean") {
data.foo.should.equal(1)
;(data as any).foo.should.equal(1)
} else {
await result.then((_data) => _data.foo.should.equal(1))
}
Expand Down

0 comments on commit 32fb40e

Please sign in to comment.