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

48 строки
1.1 KiB

  1. import { FullConfig } from 'windicss/types/interfaces';
  2. export { FullConfig as WindiCssOptions } from 'windicss/types/interfaces';
  3. declare const defaultConfigureFiles: string[];
  4. interface LoadConfigurationOptions {
  5. /**
  6. * Name for debug
  7. *
  8. * @default 'windicss-config'
  9. * @internal
  10. */
  11. name?: string;
  12. /**
  13. * Config object or path
  14. */
  15. config?: FullConfig | string;
  16. /**
  17. * CWD
  18. *
  19. * @default process.cwd
  20. * @internal
  21. */
  22. root?: string;
  23. /**
  24. * A list of filename of paths to search of config files
  25. */
  26. configFiles?: string[];
  27. /**
  28. * On loading configuration error
  29. *
  30. * @default [throw error]
  31. */
  32. onConfigurationError?: (error: unknown) => void;
  33. /**
  34. * On configure file not found
  35. *
  36. * @default [emit warning]
  37. */
  38. onConfigurationNotFound?: (filepath: string) => void;
  39. }
  40. declare function loadConfiguration(options: LoadConfigurationOptions): {
  41. config: FullConfig;
  42. filepath?: string;
  43. error?: unknown;
  44. };
  45. export { LoadConfigurationOptions, defaultConfigureFiles, loadConfiguration };