@apistudio/apim-cli
Version:
CLI for API Management Products
18 lines (15 loc) • 579 B
text/typescript
import { IRuntimeSDK } from "@apic/smith-sdk";
import { WMGWRuntimeInventory } from "@apic/wmgw-smith-inventory";
import { WMGWRuntimeTransformer } from "./wmgw_runtime_transformer.js";
export class WMGWRuntimeSDK implements IRuntimeSDK {
public inventory = new WMGWRuntimeInventory();
private _transformer?: WMGWRuntimeTransformer;
public get transformer(): WMGWRuntimeTransformer {
if (!this._transformer) {
this._transformer = new WMGWRuntimeTransformer();
}
return this._transformer;
}
}
const obj = new WMGWRuntimeSDK()
obj.transformer.transform