Skip to content

Commit e074588

Browse files
committed
fix: make angular client error response type optional
1 parent e72ab28 commit e074588

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/openapi-ts/src/plugins/@hey-api/client-angular/bundle

packages/openapi-ts/src/plugins/@hey-api/client-angular/bundle/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ export type RequestResult<
132132
error: TError[keyof TError];
133133
/** request may be undefined, because error may be from building the request object itself */
134134
request?: HttpRequest<unknown>;
135-
response: HttpErrorResponse & {
135+
/** response may be undefined, because error may be from building the request object itself or from a network error */
136+
response?: HttpErrorResponse & {
136137
error: TError[keyof TError] | null;
137138
};
138139
}

0 commit comments

Comments
 (0)