vite-plugin-lessmock
Version:
A vite plugin that auto generate mock data with fake data for TypeScript interfaces.
18 lines (17 loc) • 375 B
TypeScript
import type { Plugin } from 'vite';
declare type TOptions = {
/**
* The directory to search for mock files.
*/
mockDir: string;
/**
* Intercept api requests based on this prefix
*/
apiPrefix: string;
/**
* @default TLessMock
*/
useType?: string;
};
export default function lessMock(options: TOptions): Plugin;
export {};