import ts from "typescript" ; import type { TsGenerator } from "../../../api" ; import type { CodeGenerator } from "../../../types" ; import type { Option } from "../types" ; import * as ApiClientInterface from "./ApiClientInterface" ; import * as Class from "./Class" ; import * as Constructor from "./Constructor" ; import * as Method from "./Method" ; export { Method } ; export const create = ( factory , list , option ) : ts . Statement [ ] => { const methodList = list . map ( params => { return Method . create ( factory , params , option ) ; } ) ; const members = [ Constructor . create ( factory ) , ... methodList ] ; return [ ... ApiClientInterface . create ( factory , list , option ) , Class . create ( factory , members ) ] ; } ;