Skip to content

Commit

Permalink
Merge pull request #743 from peter-emad99/fix-route-params-type-defen…
Browse files Browse the repository at this point in the history
…tion

fix route().params type
  • Loading branch information
bakerkretzmar committed Apr 9, 2024
2 parents f2ce609 + 5b813d6 commit 8a3f814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ interface Config {
interface Router {
current(): RouteName | undefined;
current<T extends RouteName>(name: T, params?: ParameterValue | RouteParams<T>): boolean;
get params(): Record<string, unknown>;
get params(): Record<string, string>;
has<T extends RouteName>(name: T): boolean;
}

Expand Down

0 comments on commit 8a3f814

Please sign in to comment.