版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
843 B

  1. import { e as ViteNodeServerOptions } from './types-e6d31da0.js';
  2. import './types.d-1e7e3fdf.js';
  3. interface CliOptions {
  4. root?: string;
  5. script?: boolean;
  6. config?: string;
  7. mode?: string;
  8. watch?: boolean;
  9. options?: ViteNodeServerOptionsCLI;
  10. '--'?: string[];
  11. }
  12. type Optional<T> = T | undefined;
  13. type ComputeViteNodeServerOptionsCLI<T extends Record<string, any>> = {
  14. [K in keyof T]: T[K] extends Optional<RegExp[]> ? string | string[] : T[K] extends Optional<(string | RegExp)[]> ? string | string[] : T[K] extends Optional<(string | RegExp)[] | true> ? string | string[] | true : T[K] extends Optional<Record<string, any>> ? ComputeViteNodeServerOptionsCLI<T[K]> : T[K];
  15. };
  16. type ViteNodeServerOptionsCLI = ComputeViteNodeServerOptionsCLI<ViteNodeServerOptions>;
  17. export { CliOptions, ViteNodeServerOptionsCLI };