Skip to content

Commit

Permalink
fix: route params (#583)
Browse files Browse the repository at this point in the history
* fix: route params

* changeset
  • Loading branch information
matej-marcisovsky authored Oct 2, 2024
1 parent df70666 commit 864bfe2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/spicy-guests-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ima/core": patch
---

fix: route params
4 changes: 3 additions & 1 deletion packages/core/src/router/AbstractRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T = {}> = Partial<{
[K in keyof T]: T[K];
}> & {
[key: string]: string | GenericError;
};

Expand Down

0 comments on commit 864bfe2

Please sign in to comment.