@igli.kokici/st-open-api
Version:
Generates API client SDKs from an OpenAPI specification written in OpenAPI version 3.x.x
28 lines (27 loc) • 649 B
TypeScript
export declare const GROUP_SERVICE = "SERVICE";
export declare class Ref {
refs: {
[ref: string]: IRef;
};
groups: {
[group: string]: Array<IRef & {
refKey: string;
}>;
};
getImportAndTypeByRef: (ref: string, path: string) => IRefResult;
addReference: (refKey: string, data: IRef, group?: string) => void;
getByGroup(group: string): (IRef & {
refKey: string;
})[];
}
export interface IRef {
fileName: string;
className: string;
folderPath: string;
schema?: any;
}
export interface IRefResult {
import: string;
className: string;
schema?: any;
}