UNPKG

@kubb/plugin-msw

Version:

Mock Service Worker (MSW) handlers generator plugin for Kubb, creating API mocks from OpenAPI specifications for frontend development and testing.

69 lines (68 loc) 1.32 kB
import { h as Operation } from "./index-BVhRy10l.js"; import { KubbNode } from "@kubb/react-fabric/types"; //#region src/components/Handlers.d.ts type HandlersProps = { /** * Name of the function */ name: string; handlers: string[]; }; declare function Handlers({ name, handlers }: HandlersProps): KubbNode; //#endregion //#region src/components/Mock.d.ts type Props$2 = { /** * Name of the function */ name: string; typeName: string; fakerName: string; baseURL: string | undefined; operation: Operation; }; declare function Mock({ baseURL, name, typeName, operation }: Props$2): KubbNode; //#endregion //#region src/components/MockWithFaker.d.ts type Props$1 = { /** * Name of the function */ name: string; typeName: string; fakerName: string; baseURL: string | undefined; operation: Operation; }; declare function MockWithFaker({ baseURL, name, fakerName, typeName, operation }: Props$1): KubbNode; //#endregion //#region src/components/Response.d.ts type Props = { typeName: string; operation: Operation; name: string; statusCode: number; }; declare function Response({ name, typeName, operation, statusCode }: Props): KubbNode; //#endregion export { Handlers, Mock, MockWithFaker, Response }; //# sourceMappingURL=components.d.ts.map