From 5e89617a1e2f131635c688f82c7861dfcb094e23 Mon Sep 17 00:00:00 2001 From: Jacob Baker-Kretzmar Date: Tue, 20 Feb 2024 19:02:17 -0500 Subject: [PATCH] Add Vue plugin and React hook types --- src/js/index.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/js/index.d.ts b/src/js/index.d.ts index 886bc277..5de37356 100644 --- a/src/js/index.d.ts +++ b/src/js/index.d.ts @@ -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;