UNPKG

@opendoc/openapi-shaking

Version:

Remove the useless components and paths of openapi document.

5 lines (4 loc) 381 B
import { OpenAPIV3 } from 'openapi-types'; import { ShakingFilter, ShakingFilterSync } from './types/shaking-filter'; export declare function openapiShaking(document: Readonly<OpenAPIV3.Document>, filter: ShakingFilter): Promise<OpenAPIV3.Document>; export declare function openapiShakingSync(document: Readonly<OpenAPIV3.Document>, filter: ShakingFilterSync): OpenAPIV3.Document;