You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.d.ts
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,8 @@ export type Options = {
147
147
/**
148
148
Removes query parameters that matches any of the provided strings or regexes.
149
149
150
+
Global and sticky regex flags are stripped.
151
+
150
152
@default [/^utm_\w+/i]
151
153
152
154
@example
@@ -182,6 +184,8 @@ export type Options = {
182
184
183
185
__Note__: It overrides the `removeQueryParameters` option.
184
186
187
+
Global and sticky regex flags are stripped.
188
+
185
189
@default undefined
186
190
187
191
@example
@@ -233,8 +237,11 @@ export type Options = {
233
237
234
238
/**
235
239
Removes the default directory index file from path that matches any of the provided strings or regexes.
240
+
236
241
When `true`, the regex `/^index\.[a-z]+$/` is used.
237
242
243
+
Global and sticky regex flags are stripped.
244
+
238
245
@default false
239
246
240
247
@example
@@ -279,6 +286,26 @@ export type Options = {
279
286
*/
280
287
readonlysortQueryParameters?: boolean;
281
288
289
+
/**
290
+
Controls how query parameters with empty values are formatted.
291
+
292
+
- `'preserve'` - Keep the original format (`?key` stays `?key`, `?key=` stays `?key=`). If the same key appears with both formats (`?a&a=`), all instances will use the format without `=`.
293
+
- `'always'` - Always include `=` for empty values (`?key` becomes `?key=`)
294
+
- `'never'` - Never include `=` for empty values (`?key=` becomes `?key`)
Removes the default directory index file from path that matches any of the provided strings or regexes. When `true`, the regex `/^index\.[a-z]+$/` is used.
275
+
Removes the default directory index file from path that matches any of the provided strings or regexes.
276
+
277
+
When `true`, the regex `/^index\.[a-z]+$/` is used.
Controls how query parameters with empty values are formatted.
325
+
326
+
-`'preserve'` - Keep the original format (`?key` stays `?key`, `?key=` stays `?key=`). If the same key appears with both formats (`?a&a=`), all instances will use the format without `=`.
327
+
-`'always'` - Always include `=` for empty values (`?key` becomes `?key=`)
328
+
-`'never'` - Never include `=` for empty values (`?key=` becomes `?key`)
0 commit comments