v0.1.0
Minor Changes
-
#9
6364870
Thanks @christoph-fricke! - Added installation and complete usage guide to the documentation. -
#5
d15a0c2
Thanks @christoph-fricke! - AddedcreateOpenApiHttp(...)
to create a thin, type-safe wrapper around MSW'shttp
that uses openapi-tspaths
:import type { paths } from "./openapi-ts-definitions"; const http = createOpenApiHttp<paths>(); // Define handlers with fully typed paths, path params, and request/response bodies const handler = http.get("/pets/{id}", () => { /* ... */ }); // Fallback to default http implementation const catchAll = http.untyped.all("*", () => { /* ... */ });