| 3 | import { Configuration, DefaultApi, DefaultApiInterface } from "@/openapi"; |
| 4 | |
| 5 | export interface IEngineConnectorFactory { |
| 6 | // FIXME: hostという名前の時点で外部APIに接続するという知識が出てきてしまっているので |
| 7 | // Factory自体に型パラメータを付けて、接続方法だったり設定、IDみたいな名前で表現する |
| 8 | instance: (host: string) => DefaultApiInterface; |
| 9 | } |
| 10 | |
| 11 | // 通常エンジン |
| 12 | const OpenAPIEngineConnectorFactoryImpl = (): IEngineConnectorFactory => { |
nothing calls this directly
no outgoing calls
no test coverage detected