UNPKG

@typespec/http-server-js

Version:

TypeSpec HTTP server code generator for JavaScript

8 lines 791 B
import { DiagnosticTarget, NoTarget, Type } from "@typespec/compiler"; import { JsContext, Module } from "../../ctx.js"; import { SerializableType, SerializationContext } from "./index.js"; export declare function requiresJsonSerialization(ctx: JsContext, module: Module, type: Type, diagnosticTarget?: DiagnosticTarget | typeof NoTarget): boolean; export declare function emitJsonSerialization(ctx: SerializationContext, type: SerializableType, module: Module, typeName: string): Iterable<string>; export declare function transposeExpressionToJson(ctx: SerializationContext, type: Type, expr: string, module: Module): string; export declare function transposeExpressionFromJson(ctx: SerializationContext, type: Type, expr: string, module: Module): string; //# sourceMappingURL=json.d.ts.map