Skip to content

Commit fa2ee89

Browse files
committed
fix typing for accept custom properties
1 parent ff56d37 commit fa2ee89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openapi-fetch/src/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export type ClientMethod<Paths extends Record<string, PathMethods>, M extends Ht
166166
I extends MaybeOptionalInit<Paths[P], M>,
167167
>(
168168
url: P,
169-
...init: HasRequiredKeys<I> extends never ? [I?] : [I]
169+
...init: HasRequiredKeys<I> extends never ? [(I & { [key: string]: unknown })?] : [I]
170170
) => Promise<FetchResponse<Paths[P][M], I, Media>>;
171171

172172
export default function createClient<Paths extends {}, Media extends MediaType = MediaType>(

0 commit comments

Comments
 (0)