UNPKG

@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

11 lines 499 B
import type { Arguments } from 'yargs'; import type { Config, CollectFn } from '@redocly/openapi-core'; import type { CommandArgv } from './types.js'; export type CommandArgs<T extends CommandArgv> = { argv: T; config: Config; version: string; collectSpecData?: CollectFn; }; export declare function commandWrapper<T extends CommandArgv>(commandHandler?: (wrapperArgs: CommandArgs<T>) => Promise<unknown>): (argv: Arguments<T>) => Promise<void>; //# sourceMappingURL=wrapper.d.ts.map