@@ -52,8 +52,8 @@ main();
5252import * as fs from " fs" ;
5353
5454import { CodeGenerator } from " @himenon/openapi-typescript-code-generator" ;
55- import * as Templates from " @himenon/openapi-typescript-code-generator/templates" ;
56- import type * as Types from " @himenon/openapi-typescript-code-generator/types" ;
55+ import * as Templates from " @himenon/openapi-typescript-code-generator/dist/ templates" ;
56+ import type * as Types from " @himenon/openapi-typescript-code-generator/dist/ types" ;
5757
5858const main = () => {
5959 const codeGenerator = new CodeGenerator (" your/openapi/spec.yml" );
@@ -79,7 +79,7 @@ main();
7979This library provides three types of templates
8080
8181``` ts
82- import * as Templates from " @himenon/openapi-typescript-code-generator/templates" ;
82+ import * as Templates from " @himenon/openapi-typescript-code-generator/dist/ templates" ;
8383
8484Templates .ClassApiClient .generator ;
8585Templates .FunctionalApiClient .generator ;
@@ -106,7 +106,10 @@ export interface ApiClient<RequestOption> {
106106
107107export class Client <RequestOption > {
108108 private baseUrl: string ;
109- constructor (private apiClient : ApiClient <RequestOption >, baseUrl : string ) {
109+ constructor (
110+ private apiClient : ApiClient <RequestOption >,
111+ baseUrl : string ,
112+ ) {
110113 this .baseUrl = baseUrl .replace (/ \/ $ / , " " );
111114 }
112115
@@ -270,8 +273,8 @@ export const createPublisherV2 =
270273import * as fs from " fs" ;
271274
272275import { CodeGenerator } from " @himenon/openapi-typescript-code-generator" ;
273- import * as Templates from " @himenon/openapi-typescript-code-generator/templates" ;
274- import type * as Types from " @himenon/openapi-typescript-code-generator/types" ;
276+ import * as Templates from " @himenon/openapi-typescript-code-generator/dist/ templates" ;
277+ import type * as Types from " @himenon/openapi-typescript-code-generator/dist/ types" ;
275278
276279const main = () => {
277280 const codeGenerator = new CodeGenerator (" your/openapi/spec.yml" );
@@ -307,7 +310,7 @@ The examples in this section can be used in the following ways
307310import * as fs from " fs" ;
308311
309312import { CodeGenerator } from " @himenon/openapi-typescript-code-generator" ;
310- import type * as Types from " @himenon/openapi-typescript-code-generator/types" ;
313+ import type * as Types from " @himenon/openapi-typescript-code-generator/dist/ types" ;
311314
312315/** Write the definition of the Code Template here. */
313316const customGenerator: Types .CodeGenerator .CustomGenerator <{}> = {
@@ -440,7 +443,7 @@ You can directly use the API of TypeScript AST or use the wrapper API of TypeScr
440443
441444``` ts
442445import * as Types from " @himenon/openapi-typescript-code-generator/types" ;
443- import { TsGenerator } from " @himenon/openapi-typescript-code-generator/api" ;
446+ import { TsGenerator } from " @himenon/openapi-typescript-code-generator/dist/ api" ;
444447
445448interface Option {}
446449
@@ -501,7 +504,7 @@ This is a type definition file for `Templates.FunctionalApiClient`. The reason i
501504### TsGenerator
502505
503506``` ts
504- import { TsGenerator } from " @himenon/openapi-typescript-code-generator/api" ;
507+ import { TsGenerator } from " @himenon/openapi-typescript-code-generator/dist/ api" ;
505508```
506509
507510This is a wrapper API for the TypeScript AST used internally.
@@ -510,7 +513,7 @@ It is subject to change without notice.
510513### OpenApiTools
511514
512515``` ts
513- import { OpenApiTools } from " @himenon/openapi-typescript-code-generator/api" ;
516+ import { OpenApiTools } from " @himenon/openapi-typescript-code-generator/dist/ api" ;
514517```
515518
516519#### Parser
0 commit comments