版博士V2.0程序
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819
  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 };