openapi-graph-types
Version:
The types of the openapi-graph library.
12 lines (11 loc) • 432 B
TypeScript
import { Edges, EdgesRefDict, Nodes } from ".";
export declare type OpenAPIGraphConstructor = new (path: string) => OpenAPIGraphInterface;
export interface OpenAPIGraphInterface {
path: string;
nodes: Nodes;
edges: Edges;
setSchemaNodes(schemaNodes: Nodes['schemas']): void;
getSchemaNodes(): Nodes['schemas'];
setRefEdges(refEdges: EdgesRefDict): void;
getSchemaRefEdges(): EdgesRefDict['schemaRef'];
}