Skip to content

Commit b2f5cda

Browse files
committedMar 25, 2025
Clean up duplicate type definitions
1 parent 65b19fb commit b2f5cda

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed
 

‎resources/js/types/globals.d.ts

-5
This file was deleted.

‎resources/js/types/ziggy.d.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { RouteParams, Router } from 'ziggy-js';
1+
import type { route as routeFn } from 'ziggy-js';
22

33
declare global {
4-
function route(): Router;
5-
function route(name: string, params?: RouteParams<typeof name> | undefined, absolute?: boolean): string;
4+
const route: typeof routeFn;
65
}
76

87
declare module '@vue/runtime-core' {
98
interface ComponentCustomProperties {
10-
route: typeof route;
9+
route: typeof routeFn;
1110
}
1211
}

0 commit comments

Comments
 (0)
Failed to load comments.