utils.d.ts 830 B

1234567891011121314151617181920
  1. import type { webpack } from 'next/dist/compiled/webpack/webpack';
  2. import type { NextConfigComplete } from '../../../server/config-shared';
  3. export declare type ConfigurationContext = {
  4. supportedBrowsers: string[] | undefined;
  5. rootDirectory: string;
  6. customAppFile: RegExp | undefined;
  7. isDevelopment: boolean;
  8. isProduction: boolean;
  9. isServer: boolean;
  10. isClient: boolean;
  11. isEdgeRuntime: boolean;
  12. targetWeb: boolean;
  13. assetPrefix: string;
  14. sassOptions: any;
  15. productionBrowserSourceMaps: boolean;
  16. future: NextConfigComplete['future'];
  17. experimental: NextConfigComplete['experimental'];
  18. };
  19. export declare type ConfigurationFn = (a: webpack.Configuration) => webpack.Configuration;
  20. export declare const pipe: <R>(...fns: ((a: R) => R | Promise<R>)[]) => (param: R) => R | Promise<R>;