import { TsGenerator } from "@himenon/openapi-typescript-code-generator/api" ; import * as Types from "@himenon/openapi-typescript-code-generator/types" ; interface Option { } const factory = TsGenerator . Factory . create ( ) ; const generator = ( payload , option ) : Types . CodeGenerator . IntermediateCode [ ] => { return payload . map ( params => { return factory . InterfaceDeclaration . create ( { export : true , name : params . functionName , members : [ ] , } ) ; } ) ; } ; const customGenerator = { generator : generator , option : { } , } ;