UNPKG

fluid-oas

Version:

Build declarative OpenApiv3.* specifications.

14 lines (13 loc) 447 B
import { type BaseInterface } from "./base"; import type { OpenApiPathItem } from "./OpenApiPathItem"; export interface OpenApiPath extends BaseInterface { /** * Adds endpoints to the OpenAPI specification. * @param mappings - a mapping between API routes and PathItems * @returns this */ addEndpoints(mappings: Partial<{ [K in string]: OpenApiPathItem; }>): this; } export declare const Path: OpenApiPath;