UNPKG

@nestia/sdk

Version:

Nestia SDK and Swagger generator

13 lines (12 loc) 688 B
import ts from "typescript"; import { INestiaProject } from "../../structures/INestiaProject"; import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute"; import { ITypedHttpRouteParameter } from "../../structures/ITypedHttpRouteParameter"; import { ImportDictionary } from "./ImportDictionary"; export declare namespace SdkHttpFunctionProgrammer { const write: (project: INestiaProject) => (importer: ImportDictionary) => (route: ITypedHttpRoute, props: { headers: ITypedHttpRouteParameter.IHeaders | undefined; query: ITypedHttpRouteParameter.IQuery | undefined; input: ITypedHttpRouteParameter.IBody | undefined; }) => ts.FunctionDeclaration; }