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 +1 -1
- package/src/js/index.d.ts +3 -3
package/package.json
CHANGED
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():
|
|
174
|
-
current<T extends
|
|
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
|
|
178
|
+
has<T extends ValidRouteName>(name: T): boolean;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/**
|