Skip to content

Commit ebde745

Browse files
committed
chore: Upgrade to TypeScript v5
1 parent f78b2e1 commit ebde745

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"prettier": "^3.8.1",
6666
"rimraf": "^6.0.0",
6767
"ts-node": "^10.0.0",
68-
"typescript": "^4.1.2"
68+
"typescript": "^5.2.0"
6969
},
7070
"peerDependencies": {
7171
"ts-node": ">=9.0.0"

test/validate.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import cli from "./cli"
22
import assert from "assert"
3-
import type {DefinedError} from "ajv"
3+
import type {ErrorObject} from "ajv"
44

55
describe("validate", function () {
66
this.timeout(10000)
@@ -369,10 +369,10 @@ function assertRequiredErrors(stderr: string, schemaRef = "#", count = 1): void
369369
})
370370
}
371371

372-
function assertErrors(stderr: string, count = 1): DefinedError[][] {
372+
function assertErrors(stderr: string, count = 1): ErrorObject[][] {
373373
const lines = stderr.split("\n")
374374
assert.strictEqual(lines.length, count * 2 + 1)
375-
const results: DefinedError[][] = []
375+
const results: ErrorObject[][] = []
376376
for (let i = 0; i < count; i += 2) {
377377
assert(/\sinvalid/.test(lines[i]))
378378
const errors = JSON.parse(lines[i + 1])

0 commit comments

Comments
 (0)