Skip to content

Commit

Permalink
Import types to prevent missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBCarter committed Mar 13, 2024
1 parent 4bf60d2 commit 96239ec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@xylabs/tsconfig": "^3.5.2",
"@xylabs/tsconfig-jest": "^3.5.2",
"body-parser": "^1.20.2",
"connect": "^3.7.0",
"eslint": "^8.57.0",
"express": "^4.18.3",
"express-mung": "^0.5.1",
Expand All @@ -46,6 +47,7 @@
"@aws-sdk/client-secrets-manager": "^3.256.0",
"@xylabs/assert": "^2.6.16",
"body-parser": "^1.20.1",
"connect": "^3.7.0",
"express": "^4",
"express-mung": "^0.5.1",
"http-status-codes": "^2.2.0",
Expand Down Expand Up @@ -103,9 +105,6 @@
},
"sideEffects": false,
"packageManager": "[email protected]",
"dependencies": {
"connect": "^3.7.0"
},
"volta": {
"node": "18.19.0",
"yarn": "1.22.19"
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/asyncHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NextFunction, Request, RequestHandler, Response } from 'express'
import { ParamsDictionary, Query } from 'express-serve-static-core'
import type { ParamsDictionary, Query } from 'express-serve-static-core'

export function asyncHandler<P = NoReqParams, ResBody = NoResBody, ReqBody = NoReqBody, ReqQuery = NoReqQuery, Locals extends NoLocals = NoLocals>(
fn: RequestHandler<P, ResBody, ReqBody, ReqQuery, Locals>,
Expand Down
2 changes: 1 addition & 1 deletion src/HttpUtil/getHttpHeader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Request } from 'express-serve-static-core'
import type { Request } from 'express-serve-static-core'

/**
* Since there can be multiple of certain HTTP headers or
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3292,6 +3292,7 @@ __metadata:
"@aws-sdk/client-secrets-manager": ^3.256.0
"@xylabs/assert": ^2.6.16
body-parser: ^1.20.1
connect: ^3.7.0
express: ^4
express-mung: ^0.5.1
http-status-codes: ^2.2.0
Expand Down

0 comments on commit 96239ec

Please sign in to comment.