Skip to content

Commit 5ae6361

Browse files
authored
fix: change type of route() to Router (#83)
1 parent f911c5e commit 5ae6361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/types/ziggy.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Config, RouteParams } from 'ziggy-js';
1+
import { RouteParams, Router } from 'ziggy-js';
22

33
declare global {
4-
function route(): Config;
4+
function route(): Router;
55
function route(name: string, params?: RouteParams<typeof name> | undefined, absolute?: boolean): string;
66
}
77

0 commit comments

Comments
 (0)