ziggy-js 2.5.0 → 2.5.2

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.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "Use your Laravel named routes in JavaScript.",
5
5
  "keywords": [
6
6
  "laravel",
package/src/js/index.d.ts CHANGED
@@ -170,12 +170,12 @@ interface ParsedQs {
170
170
  * Ziggy's Router class.
171
171
  */
172
172
  interface Router {
173
- current(): RouteName | undefined;
174
- current<T extends RouteName>(name: T, params?: ParameterValue | RouteParams<T>): boolean;
173
+ current(): ValidRouteName | undefined;
174
+ current<T extends ValidRouteName>(name: T, params?: ParameterValue | RouteParams<T>): boolean;
175
175
  get params(): Record<string, string>;
176
176
  get routeParams(): Record<string, string>;
177
177
  get queryParams(): ParsedQs;
178
- has<T extends RouteName>(name: T): boolean;
178
+ has<T extends ValidRouteName>(name: T): boolean;
179
179
  }
180
180
 
181
181
  /**