File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ function generateClientCode(
7676 "// DO NOT EDIT THIS FILE MANUALLY." ,
7777 "// See Also: https://github.com/moznion/openapi-fetch-gen" ,
7878 `import createClient, { type ClientOptions } from "openapi-fetch";` ,
79- `import type { paths } from "./${ schemaFileName . replace ( / \. d \. t s $ / , "" ) } "; // generated by openapi-typescript` ,
79+ `import type { paths } from "./${ schemaFileName } "; // generated by openapi-typescript` ,
8080 "" ,
8181 defaultHeaderType ,
8282 clientClass ,
Original file line number Diff line number Diff line change 22// DO NOT EDIT THIS FILE MANUALLY.
33// See Also: https://github.com/moznion/openapi-fetch-gen
44import createClient , { type ClientOptions } from "openapi-fetch" ;
5- import type { paths } from "./schema" ; // generated by openapi-typescript
5+ import type { paths } from "./schema.d.ts " ; // generated by openapi-typescript
66
77export class Client {
88 private readonly client ;
Original file line number Diff line number Diff line change 22// DO NOT EDIT THIS FILE MANUALLY.
33// See Also: https://github.com/moznion/openapi-fetch-gen
44import createClient , { type ClientOptions } from "openapi-fetch" ;
5- import type { paths } from "./schema" ; // generated by openapi-typescript
5+ import type { paths } from "./schema.d.ts " ; // generated by openapi-typescript
66
77type DefaultHeaders = Record < "Authorization" | "Application-Version" , string > ;
88
You can’t perform that action at this time.
0 commit comments