Skip to content

Commit 06354bf

Browse files
committed
chore: Updated TypeScript configuration.
1 parent 657d206 commit 06354bf

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"version": "5.0.0",
44
"description": "A error handling plugin for Fastify that uses enhanced HTTP errors.",
55
"homepage": "https://sw.cowtech.it/fastify-http-errors-enhanced",
6-
"repository": "github:ShogunPanda/fastify-http-errors-enhanced",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/ShogunPanda/fastify-http-errors-enhanced.git"
9+
},
710
"keywords": [
811
"fastify",
912
"fastify-plugin",
@@ -41,20 +44,20 @@
4144
"dependencies": {
4245
"ajv": "^8.12.0",
4346
"fastify-plugin": "^4.5.1",
44-
"http-errors-enhanced": "^2.0.0"
47+
"http-errors-enhanced": "^2.0.3"
4548
},
4649
"devDependencies": {
47-
"@cowtech/eslint-config": "^9.0.0",
48-
"@swc/cli": "^0.1.63",
49-
"@swc/core": "^1.3.101",
50-
"@types/node": "^20.10.5",
50+
"@cowtech/eslint-config": "^9.0.3",
51+
"@swc/cli": "^0.2.3",
52+
"@swc/core": "^1.3.105",
53+
"@types/node": "^20.11.6",
5154
"@types/tap": "^15.0.11",
5255
"ajv-formats": "^2.1.1",
53-
"c8": "^8.0.1",
56+
"c8": "^9.1.0",
5457
"chokidar": "^3.5.3",
5558
"concurrently": "^8.2.2",
56-
"fastify": "^4.25.1",
57-
"prettier": "^3.1.1",
59+
"fastify": "^4.25.2",
60+
"prettier": "^3.2.4",
5861
"tap": "^18.6.1",
5962
"ts-node": "^10.9.2",
6063
"typescript": "^5.3.3"

src/interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { type ValidateFunction } from 'ajv'
21
import type Ajv from 'ajv'
2+
import { type ValidateFunction } from 'ajv'
33
import { type FastifyError } from 'fastify'
44

55
export const kHttpErrorsEnhancedConfiguration = Symbol('fastify-http-errors-enhanced-configuration')
@@ -10,7 +10,7 @@ export interface Configuration {
1010
convertValidationErrors?: boolean
1111
allowUndeclaredResponses?: boolean
1212
use422ForValidationErrors?: boolean
13-
responseValidatorCustomizer?: (ajv: Ajv) => void
13+
responseValidatorCustomizer?: (ajv: typeof Ajv) => void
1414
preHandler?: (error: FastifyError | Error) => Error
1515
}
1616

tsconfig.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "ESNext",
5-
"moduleResolution": "node",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
66
"jsx": "preserve",
77
"declaration": true,
88
"outDir": "dist",
@@ -17,7 +17,5 @@
1717
"strictNullChecks": true,
1818
"useUnknownInCatchVariables": false
1919
},
20-
"include": [
21-
"src/*.ts"
22-
]
20+
"include": ["src/*.ts"]
2321
}

0 commit comments

Comments
 (0)