Skip to content

Commit 955a9fc

Browse files
Copilotmrlubos
andcommitted
fix: update angular client bundle types.ts to include Promise return type in CreateClientConfig
Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
1 parent b02c4f6 commit 955a9fc

1 file changed

Lines changed: 1 addition & 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export type Client = CoreClient<RequestFn, Config, MethodFn, BuildUrlFn, SseFn>
209209
*/
210210
export type CreateClientConfig<T extends ClientOptions = ClientOptions> = (
211211
override?: Config<ClientOptions & T>,
212-
) => Config<Required<ClientOptions> & T>;
212+
) => Config<Required<ClientOptions> & T> | Promise<Config<Required<ClientOptions> & T>>;
213213

214214
export interface TDataShape {
215215
body?: unknown;

0 commit comments

Comments
 (0)