Skip to content

Commit bdf1492

Browse files
committed
🔧 fix: TypeScript errors in dynamic-handle.ts
1 parent d2f7e53 commit bdf1492

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dynamic-handle.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ export const createDynamicHandler = (app: AnyElysia) => {
385385
_header
386386
)
387387
} else if (validator.headers?.Decode)
388-
// @ts-expect-error
388+
// @ts-ignore
389389
context.headers = validator.headers.Decode(context.headers)
390390

391391
if (paramsValidator?.Check(context.params) === false) {
@@ -395,7 +395,7 @@ export const createDynamicHandler = (app: AnyElysia) => {
395395
context.params
396396
)
397397
} else if (validator.params?.Decode)
398-
// @ts-expect-error
398+
// @ts-ignore
399399
context.params = validator.params.Decode(context.params)
400400

401401
if (validator.query?.schema) {
@@ -682,8 +682,8 @@ export const createDynamicErrorHandler = (app: AnyElysia) => {
682682
const errorContext = Object.assign(context, { error, code: error.code })
683683
errorContext.set = context.set
684684

685-
// @ts-expect-error
686685
if (
686+
// @ts-expect-error
687687
typeof error?.toResponse === 'function' &&
688688
!(error instanceof ValidationError) &&
689689
!(error instanceof TransformDecodeError)

0 commit comments

Comments
 (0)