UNPKG

next

Version:

The React Framework

20 lines (19 loc) 766 B
import { webpack } from 'next/dist/compiled/webpack/webpack'; import { NextConfigComplete } from '../../../server/config-shared'; export declare type ConfigurationContext = { rootDirectory: string; customAppFile: RegExp; isDevelopment: boolean; isProduction: boolean; isServer: boolean; isClient: boolean; webServerRuntime: boolean; targetWeb: boolean; assetPrefix: string; sassOptions: any; productionBrowserSourceMaps: boolean; future: NextConfigComplete['future']; experimental: NextConfigComplete['experimental']; }; export declare type ConfigurationFn = (a: webpack.Configuration) => webpack.Configuration; export declare const pipe: <R>(...fns: ((a: R) => R | Promise<R>)[]) => (param: R) => R | Promise<R>;