Skip to content

Commit c2c6fa2

Browse files
committed
🚑 Typo in Serialize interface name
1 parent d721489 commit c2c6fa2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface ResponsePromise<P extends Payload = Payload>
2222
extends Promise<Response<P>>,
2323
BodyMethods {}
2424

25-
interface Serializer {
25+
interface Serialize {
2626
(params: SearchParams): URLSearchParams | string
2727
}
2828

@@ -56,7 +56,7 @@ interface RequiredOptions<P extends Payload> extends RequestInit {
5656
* Defaults to internal implementation based on `URLSearchParams`
5757
* with better handling of array values.
5858
*/
59-
serialize?: Serializer
59+
serialize?: Serialize
6060
/**
6161
* If specified `TimeoutError` will be thrown and
6262
* the request will be cancelled after the specified duration.
@@ -168,7 +168,7 @@ function mergeMaps<Init, Request extends URLSearchParams | Headers>(
168168
}
169169

170170
const normalizeParams = (
171-
serialize: Serializer = defaultSerialize,
171+
serialize: Serialize = defaultSerialize,
172172
params: SearchParams | URLSearchParams | string = ''
173173
) =>
174174
typeof params === 'string' || params instanceof URLSearchParams
@@ -309,7 +309,7 @@ export {
309309
Response,
310310
ResponseError,
311311
TimeoutError,
312-
Serializer,
312+
Serialize,
313313
defaultSerialize as serialize,
314314
request,
315315
create,

0 commit comments

Comments
 (0)