@typespec/http-server-js
Version:
TypeSpec HTTP server code generator for JavaScript
13 lines • 608 B
TypeScript
import { DeclarationType, JsContext, Module } from "../ctx.js";
/**
* Emit a declaration for a module based on its type.
*
* The altName is optional and is only used for unnamed models and unions.
*
* @param ctx - The emitter context.
* @param type - The type to emit.
* @param module - The module that this declaration is written into.
* @param altName - An alternative name to use for the declaration if it is not named.
*/
export declare function emitDeclaration(ctx: JsContext, type: DeclarationType, module: Module, altName?: string): Iterable<string>;
//# sourceMappingURL=declaration.d.ts.map