From 37dc294f78b7f008f98872a92328fd27565ef2f8 Mon Sep 17 00:00:00 2001 From: drsoft28 Date: Wed, 23 Apr 2025 10:38:15 +0100 Subject: [PATCH] Update globals.d.ts: add route to module vue for ignore apeearing error in eslint --- resources/js/types/globals.d.ts | 5 +++++ 1 file changed, 5 insertions(+) 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 + } +}