@oselvar/c4
Version:
Test helpers for Cloudflare Workers
10 lines (7 loc) • 597 B
TypeScript
import { OpenAPIV3 } from 'openapi-types';
import { a as C4Name } from '../C4Model-C1kukjQy.js';
import { C as C4ModelBuilder } from '../C4ModelBuilder-Ca0aKRsq.js';
type HttpMethod = "get" | "put" | "post" | "delete" | "options" | "head" | "patch" | "trace";
declare function addOpenApiComponents(builder: C4ModelBuilder, openapi: OpenAPIV3.Document, container: C4Name): void;
declare function addOpenapiCall(builder: C4ModelBuilder, openapi: OpenAPIV3.Document, callerName: string, httpMethod: HttpMethod, path: string): void;
export { type HttpMethod, addOpenApiComponents, addOpenapiCall };