Skip to content

Commit

Permalink
chore: update typescript version to v5 (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
DemonHa authored Oct 16, 2023
1 parent cbfcddb commit 75d2901
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Empty file added index.d.ts
Empty file.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"pretest": "xcopy /e /k /i . \"..\\node_modules\\fastify-cli\" || rsync -r --exclude=node_modules ./ node_modules/fastify-cli || echo 'this is fine'",
"test-no-coverage": "npm run unit:cli && npm run unit:templates-without-ts-esm && npm run unit:template-ts-esm && npm run test:typescript",
"test": "c8 --clean npm run test-no-coverage",
"test:typescript": "tsd templates/plugin && tsc --project templates/app-ts/tsconfig.json && del-cli templates/app-ts/dist"
"test:typescript": "tsd templates/plugin -t ./../../index.d.ts && tsc --project templates/app-ts/tsconfig.json && del-cli templates/app-ts/dist"
},
"keywords": [
"fastify",
Expand Down Expand Up @@ -84,8 +84,8 @@
"tap": "^16.1.0",
"ts-node": "^10.4.0",
"ts-standard": "^12.0.1",
"tsd": "^0.16.0",
"typescript": "^4.5.4",
"tsd": "^0.28.0",
"typescript": "^5.2.2",
"walker": "^1.0.8"
},
"tsd": {
Expand Down
2 changes: 1 addition & 1 deletion templates/plugin/test/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { expectType } from 'tsd'
let app
try {
app = fastify()
await app.ready()
app.ready()
app.register(example)
expectType<() => string>(app.exampleDecorator)
} catch (err) {
Expand Down

0 comments on commit 75d2901

Please sign in to comment.