openapi-alchemist
Version:
Transform OpenAPI 3 to Swagger 2 with alchemical precision
13 lines (12 loc) • 572 B
TypeScript
import { ConvertOptions, ConvertResult, BaseFormat } from './types';
declare const Converter: {
Formats: {
[key: string]: any;
};
BaseFormat: typeof BaseFormat;
ResourceReaders: import("./types").ResourceReaders;
getSpec(source: string | object, format: string, callback?: (err: any, result: BaseFormat) => void): Promise<BaseFormat>;
getFormatName(name: string, version: string): string | undefined;
convert(options: ConvertOptions, callback?: (err: any, result: ConvertResult) => void): Promise<ConvertResult>;
};
export = Converter;