ziggy-js 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ziggy-js",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Use your Laravel named routes in JavaScript.",
5
5
  "keywords": [
6
6
  "laravel",
package/src/js/index.d.ts CHANGED
@@ -155,16 +155,16 @@ interface Router {
155
155
  * Ziggy's route helper.
156
156
  */
157
157
  // Called with no arguments - returns a Router instance
158
- export default function route(): Router;
158
+ export function route(): Router;
159
159
  // Called with a route name and optional additional arguments - returns a URL string
160
- export default function route<T extends RouteName>(
160
+ export function route<T extends RouteName>(
161
161
  name: T,
162
162
  params?: RouteParams<T> | undefined,
163
163
  absolute?: boolean,
164
164
  config?: Config,
165
165
  ): string;
166
166
  // Called with configuration arguments only - returns a configured Router instance
167
- export default function route(
167
+ export function route(
168
168
  name: undefined,
169
169
  params: undefined,
170
170
  absolute?: boolean,