Skip to content

Commit

Permalink
fix: route params
Browse files Browse the repository at this point in the history
  • Loading branch information
matej-marcisovsky committed Sep 30, 2024
1 parent ea882bb commit c2b9ed9
Showing 1 changed file with 3 additions and 1 deletion.
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 c2b9ed9

Please sign in to comment.