UNPKG

counterfact

Version:

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

7 lines (6 loc) 261 B
/** * Represents an IANA media type string in the format `type/subtype` * (e.g. `"application/json"`, `"text/plain"`, `"image/png"`). * Used to identify the content type of an HTTP request or response body. */ export type MediaType = `${string}/${string}`;