File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ interface ResponsePromise<P extends Payload = Payload>
22
22
extends Promise < Response < P > > ,
23
23
BodyMethods { }
24
24
25
- interface Serializer {
25
+ interface Serialize {
26
26
( params : SearchParams ) : URLSearchParams | string
27
27
}
28
28
@@ -56,7 +56,7 @@ interface RequiredOptions<P extends Payload> extends RequestInit {
56
56
* Defaults to internal implementation based on `URLSearchParams`
57
57
* with better handling of array values.
58
58
*/
59
- serialize ?: Serializer
59
+ serialize ?: Serialize
60
60
/**
61
61
* If specified `TimeoutError` will be thrown and
62
62
* the request will be cancelled after the specified duration.
@@ -168,7 +168,7 @@ function mergeMaps<Init, Request extends URLSearchParams | Headers>(
168
168
}
169
169
170
170
const normalizeParams = (
171
- serialize : Serializer = defaultSerialize ,
171
+ serialize : Serialize = defaultSerialize ,
172
172
params : SearchParams | URLSearchParams | string = ''
173
173
) =>
174
174
typeof params === 'string' || params instanceof URLSearchParams
@@ -309,7 +309,7 @@ export {
309
309
Response ,
310
310
ResponseError ,
311
311
TimeoutError ,
312
- Serializer ,
312
+ Serialize ,
313
313
defaultSerialize as serialize ,
314
314
request ,
315
315
create ,
You can’t perform that action at this time.
0 commit comments