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 +1 -1
- package/src/js/index.d.ts +3 -3
package/package.json
CHANGED
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
|
|
158
|
+
export function route(): Router;
|
|
159
159
|
// Called with a route name and optional additional arguments - returns a URL string
|
|
160
|
-
export
|
|
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
|
|
167
|
+
export function route(
|
|
168
168
|
name: undefined,
|
|
169
169
|
params: undefined,
|
|
170
170
|
absolute?: boolean,
|