Skip to content

Commit

Permalink
Merge pull request #715 from tighten/vue-react-types
Browse files Browse the repository at this point in the history
Add Vue plugin and React hook types
  • Loading branch information
bakerkretzmar authored Feb 21, 2024
2 parents cf51d87 + 5e89617 commit b31d101
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,15 @@ export function route(
absolute?: boolean,
config?: Config,
): Router;

/**
* Ziggy's Vue plugin.
*/
export const ZiggyVue: {
install(app: any, options?: Config): void;
};

/**
* Ziggy's React hook.
*/
export function useRoute(defaultConfig?: Config): typeof route;

0 comments on commit b31d101

Please sign in to comment.