Skip to content

Commit 2adb7f3

Browse files
committed
- Fixed export type for when using OpenAPI generator
1 parent facfe16 commit 2adb7f3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

types/index.d.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ export type Options = {
3131

3232
export declare function generate(options: Options): Promise<void>;
3333

34-
export default {
35-
HttpClient,
36-
Indent,
37-
generate,
34+
declare type OpenAPI = {
35+
HttpClient: HttpClient;
36+
Indent: Indent;
37+
generate: typeof generate;
3838
};
39+
40+
export default OpenAPI;

0 commit comments

Comments
 (0)