Skip to content

Commit c4f66ce

Browse files
committed
do not use ParseAsResponse for error
1 parent a3422b2 commit c4f66ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/openapi-fetch/src/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export type FetchResponse<T extends Record<string | number, any>, Options, Media
105105
response: Response;
106106
status: OpenApiStatusToHttpStatus<S, keyof ResponseObjectMap<T>>;
107107
data: S extends OkStatus ? ParseAsResponse<GetResponseContent<ResponseObjectMap<T>, Media, S>, Options> : never;
108-
error: S extends ErrorStatus ? ParseAsResponse<GetResponseContent<ResponseObjectMap<T>, Media, S>, Options> : never;
108+
error: S extends ErrorStatus ? GetResponseContent<ResponseObjectMap<T>, Media, S> : never;
109109
};
110110
}[keyof ResponseObjectMap<T>];
111111

0 commit comments

Comments
 (0)