version.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. import { NextConfigComplete } from '../../server/config-shared';
  2. declare type EventCliSessionStarted = {
  3. nextVersion: string;
  4. nodeVersion: string;
  5. cliCommand: string;
  6. isSrcDir: boolean | null;
  7. hasNowJson: boolean;
  8. isCustomServer: boolean | null;
  9. hasNextConfig: boolean;
  10. buildTarget: string;
  11. hasWebpackConfig: boolean;
  12. hasBabelConfig: boolean;
  13. basePathEnabled: boolean;
  14. i18nEnabled: boolean;
  15. imageEnabled: boolean;
  16. imageFutureEnabled: boolean;
  17. locales: string | null;
  18. localeDomainsCount: number | null;
  19. localeDetectionEnabled: boolean | null;
  20. imageDomainsCount: number | null;
  21. imageRemotePatternsCount: number | null;
  22. imageSizes: string | null;
  23. imageLoader: string | null;
  24. imageFormats: string | null;
  25. trailingSlashEnabled: boolean;
  26. reactStrictMode: boolean;
  27. webpackVersion: number | null;
  28. };
  29. export declare function eventCliSession(dir: string, nextConfig: NextConfigComplete, event: Omit<EventCliSessionStarted, 'nextVersion' | 'nodeVersion' | 'hasNextConfig' | 'buildTarget' | 'hasWebpackConfig' | 'hasBabelConfig' | 'basePathEnabled' | 'i18nEnabled' | 'imageEnabled' | 'imageFutureEnabled' | 'locales' | 'localeDomainsCount' | 'localeDetectionEnabled' | 'imageDomainsCount' | 'imageRemotePatternsCount' | 'imageSizes' | 'imageLoader' | 'imageFormats' | 'trailingSlashEnabled' | 'reactStrictMode'>): {
  30. eventName: string;
  31. payload: EventCliSessionStarted;
  32. }[];
  33. export {};