Skip to content

Commit

Permalink
Types: Update useRoute return value
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Apr 29, 2021
1 parent b8daf94 commit 32298bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/preact-iso/router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ interface LocationHook {
}
export const useLocation: () => LocationHook;

export const useRoute: () => { [key: string]: string };
export const useRoute: () => {
path: string;
query: Record<string, string>;
params: Record<string, string>;
};

interface RoutableProps {
path?: string;
Expand Down

0 comments on commit 32298bf

Please sign in to comment.