UNPKG

counterfact

Version:

Generate a TypeScript-based mock server from an OpenAPI spec in seconds — with stateful routes, hot reload, and REPL support.

9 lines (8 loc) 306 B
export function isContextModule(module) { return "Context" in module && typeof module.Context === "function"; } export function isMiddlewareModule(module) { return ("middleware" in module && typeof Object.getOwnPropertyDescriptor(module, "middleware")?.value === "function"); }