diff --git a/resources/js/types/globals.d.ts b/resources/js/types/globals.d.ts index b3c9b786..5c4d25c7 100644 --- a/resources/js/types/globals.d.ts +++ b/resources/js/types/globals.d.ts @@ -3,3 +3,8 @@ import type { route as routeFn } from 'ziggy-js'; declare global { const route: typeof routeFn; } +declare module 'vue' { + interface ComponentCustomProperties { + route: typeof routeFn + } +}