Skip to content

Commit

Permalink
update typescript, fix broken annotation (#2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Nov 13, 2022
1 parent 948ffbf commit 572c843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -104,7 +104,7 @@
"rollup-plugin-terser": "^7.0.2",
"ts-node": "^10.0.0",
"tsify": "^5.0.2",
"typescript": "^4.2.0"
"typescript": "^4.8.0"
},
"collective": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions spec/types/jtd-schema.spec.ts
Expand Up @@ -130,12 +130,12 @@ describe("JTDSchemaType", () => {
// tuples don't work
// @ts-expect-error
const tupleHomo: JTDSchemaType<[number, number]> = {elements: {type: "float64"}}
// @ts-expect-error
const tupleHeteroNum: JTDSchemaType<[number, string]> = {
// @ts-expect-error
elements: {type: "float64"},
}
// @ts-expect-error
const tupleHeteroString: JTDSchemaType<[number, string]> = {
// @ts-expect-error
elements: {type: "string"},
}
const elemNull: JTDSchemaType<number[] | null> = {elements: {type: "float64"}, nullable: true}
Expand Down

0 comments on commit 572c843

Please sign in to comment.