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.

55 lines (54 loc) 1.04 kB
import { Operation } from "./types-BOMj2hjt.js"; import { ReactNode } from "react"; //#region src/components/Mock.d.ts type Props$1 = { /** * Name of the function */ name: string; typeName: string; fakerName: string; baseURL: string | undefined; operation: Operation; }; declare function Mock({ baseURL, name, typeName, operation }: Props$1): ReactNode; //#endregion //#region src/components/Handlers.d.ts type HandlersProps = { /** * Name of the function */ name: string; handlers: string[]; }; declare function Handlers({ name, handlers }: HandlersProps): ReactNode; //#endregion //#region src/components/MockWithFaker.d.ts type Props = { /** * Name of the function */ name: string; typeName: string; fakerName: string; baseURL: string | undefined; operation: Operation; }; declare function MockWithFaker({ baseURL, name, fakerName, typeName, operation }: Props): ReactNode; //#endregion export { Handlers, Mock, MockWithFaker }; //# sourceMappingURL=components.d.ts.map