@openapi-generator-plus/typescript-express-example-server-generator
Version:
An OpenAPI Generator Plus template for a TypeScript API server using Express to output example responses
8 lines (7 loc) • 352 B
TypeScript
import { TemplateRootContext } from '@openapi-generator-plus/typescript-generator-common';
/**
* Convert an operation path (using OpenAPI's `{param}` placeholders) to an
* Express route path (using `:param` placeholders).
*/
export declare function expressPath(path: string): string;
export declare function index(ctx: TemplateRootContext): string;