@dbs-portal/core-api
Version:
HTTP client and API utilities for DBS Portal
38 lines • 995 B
TypeScript
/**
* Vite plugin for MSW integration
*/
import type { Plugin } from 'vite';
/**
* MSW Vite plugin options
*/
export interface MSWPluginOptions {
/** Enable MSW integration */
enabled?: boolean;
/** MSW mode */
mode?: 'development' | 'testing' | 'storybook';
/** Public directory for service worker */
publicDir?: string;
/** Service worker filename */
serviceWorkerFilename?: string;
/** Auto-generate service worker */
autoGenerateServiceWorker?: boolean;
/** Log MSW status */
verbose?: boolean;
}
/**
* Create MSW Vite plugin
*/
export declare function mswPlugin(options?: MSWPluginOptions): Plugin;
/**
* Default MSW plugin for development
*/
export declare const mswDevelopmentPlugin: () => Plugin<any>;
/**
* MSW plugin for testing
*/
export declare const mswTestingPlugin: () => Plugin<any>;
/**
* MSW plugin for Storybook
*/
export declare const mswStorybookPlugin: () => Plugin<any>;
//# sourceMappingURL=vite-plugin.d.ts.map