Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "ziggy-js", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Use your Laravel named routes in JavaScript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -158,5 +158,5 @@ /** | ||
// Called with no arguments - returns a Router instance | ||
export default function route(): Router; | ||
export function route(): Router; | ||
// Called with a route name and optional additional arguments - returns a URL string | ||
export default function route<T extends RouteName>( | ||
export function route<T extends RouteName>( | ||
name: T, | ||
@@ -168,3 +168,3 @@ params?: RouteParams<T> | undefined, | ||
// Called with configuration arguments only - returns a configured Router instance | ||
export default function route( | ||
export function route( | ||
name: undefined, | ||
@@ -171,0 +171,0 @@ params: undefined, |
42003