openapi-axios
Version:
OpenAPI(2.0/3.0/3.1) Schema → Type-safe Axios
12 lines (11 loc) • 528 B
TypeScript
import { OpenAPIAll } from '../types/openapi';
type AcceptDocument = OpenAPIAll.Document | string;
export declare class Reader {
cwd: string;
read(document: AcceptDocument): Promise<(import('../migrations').MigratedV2_0 | import('../migrations').MigratedV3_0 | import('../migrations').MigratedV3_1)[]>;
private _read;
protected readLocal(file: string): string;
protected readRemote(url: string): Promise<string>;
protected readObject(document: OpenAPIAll.Document): OpenAPIAll.Document<{}>;
}
export {};