@typespec/http-server-js
Version:
TypeSpec HTTP server code generator for JavaScript
11 lines • 519 B
TypeScript
import { Type } from "@typespec/compiler";
import { JsContext, Module } from "../../ctx.js";
/**
* Entry point for generating mock data for any TypeSpec type.
* Delegates to specific mock functions based on the type kind.
*
* @param type - The TypeSpec type to mock
* @returns A JavaScript string representation of the mock data, or undefined if the type cannot be mocked
*/
export declare function mockType(ctx: JsContext, module: Module, type: Type): string | undefined;
//# sourceMappingURL=data-mocks.d.ts.map