diff --git a/.changeset/spicy-guests-behave.md b/.changeset/spicy-guests-behave.md new file mode 100644 index 000000000..10322bab9 --- /dev/null +++ b/.changeset/spicy-guests-behave.md @@ -0,0 +1,5 @@ +--- +"@ima/core": patch +--- + +fix: route params 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; };