@redocly/cli
Version:
[@Redocly](https://redocly.com) CLI is your all-in-one OpenAPI utility. It builds, manages, improves, and quality-checks your OpenAPI descriptions, all of which comes in handy for various phases of the API Lifecycle. Create your own rulesets to make API g
14 lines (13 loc) • 865 B
TypeScript
import type { Oas3PathItem, Referenced } from '@redocly/openapi-core/lib/typings/openapi';
import type { CommandArgs } from '../../wrapper';
import type { VerifyConfigOptions } from '../../types';
export type SplitOptions = {
api: string;
outDir: string;
separator: string;
} & VerifyConfigOptions;
export declare function handleSplit({ argv, collectSpecData }: CommandArgs<SplitOptions>): Promise<void>;
export declare function startsWithComponents(node: string): boolean;
export declare function crawl(object: unknown, visitor: (node: Record<string, unknown>) => void): void;
declare function iteratePathItems(pathItems: Record<string, Referenced<Oas3PathItem>> | undefined, openapiDir: string, outDir: string, componentsFiles: object, pathSeparator: string, codeSamplesPathPrefix: string | undefined, ext: string): void;
export { iteratePathItems };