Skip to content

Commit e7fe5bd

Browse files
author
Lubos
authored
Merge pull request #989 from jacobinu/fix/config-type-error
2 parents df9c928 + bc78a42 commit e7fe5bd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.changeset/little-bikes-dance.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
fix: make UserConfig interface instead of type

packages/openapi-ts/src/types/config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ export interface ClientConfig {
233233
useOptions?: boolean;
234234
}
235235

236-
// export type UserConfig = ClientConfig | ReadonlyArray<ClientConfig>
237-
export type UserConfig = ClientConfig;
236+
export interface UserConfig extends ClientConfig {}
238237

239238
export type Config = Omit<
240239
Required<ClientConfig>,

0 commit comments

Comments
 (0)