@redocly/openapi-core
Version:
See https://github.com/Redocly/openapi-cli
10 lines (8 loc) • 341 B
text/typescript
export interface StatsRow {
metric: string;
total: number;
color: 'red' | 'yellow' | 'green' | 'white' | 'magenta' | 'cyan';
items?: Set<string>;
}
export type StatsName = 'operations' | 'refs' | 'tags' | 'externalDocs' | 'pathItems' | 'links' | 'schemas' | 'parameters';
export type StatsAccumulator = Record<StatsName, StatsRow>;