openapi-alchemist
Version:
Transform OpenAPI 3 to Swagger 2 with alchemical precision
13 lines (12 loc) • 476 B
TypeScript
export declare class Util {
static joinPath(...args: string[]): string;
static parseJSON: (data: string) => Promise<any>;
static parseYAML: (data: string) => Promise<any>;
static resourceReaders: {
file: (filename: string) => Promise<unknown>;
object: (data: any) => Promise<any>;
string: (data: string) => Promise<string>;
};
static getSourceType(source: any): string | undefined;
static removeNonValues(obj: any): void;
}