@ohmyts/vite
Version:
Proxy request to get response data and transform to TypeScript code.
17 lines (13 loc) • 406 B
TypeScript
import { Plugin } from 'vite';
import { ServerOptions } from 'http-proxy';
interface OhmytsOptions {
target: string;
proxyOptions: ServerOptions;
rootDir?: string;
encoding?: BufferEncoding;
suffix?: string;
overwrite?: boolean;
declare?: boolean;
}
declare function ohmytsVite(options: OhmytsOptions | OhmytsOptions[]): Plugin;
export { OhmytsOptions, ohmytsVite };