Skip to content

Commit bdfa4b9

Browse files
committed
fix: permit null as body
1 parent 58f7741 commit bdfa4b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/typescript/src/templates/fetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export type ${pascal(
4848
4949
export async function ${camel(prefix)}Fetch<
5050
TData,
51-
TBody extends {} | undefined,
51+
TBody extends {} | undefined | null,
5252
THeaders extends {},
5353
TQueryParams extends {},
5454
TPathParams extends {}

0 commit comments

Comments
 (0)