Skip to content

Commit

Permalink
add type for useRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Feb 21, 2021
1 parent 7156a49 commit ff6c16c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/preact-iso/router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const useLocation: () => LocationHook;
/** @deprecated renamed to useLocation() */
export const useLoc: () => LocationHook;

export const useRoute: () => { [key: string]: string };

interface RoutableProps {
path?: string;
default?: boolean;
Expand Down

0 comments on commit ff6c16c

Please sign in to comment.