diff --git a/packages/core/src/router/AbstractRoute.ts b/packages/core/src/router/AbstractRoute.ts index fb4b68da4..97d301b0f 100644 --- a/packages/core/src/router/AbstractRoute.ts +++ b/packages/core/src/router/AbstractRoute.ts @@ -6,7 +6,9 @@ import { OCAliasMap } from '../config/bind'; import { Controller } from '../controller/Controller'; import { GenericError } from '../error/GenericError'; -export type RouteParams = { +export type RouteParams = Partial<{ + [K in keyof T]: T[K]; +}> & { [key: string]: string | GenericError; };