next
Version:
The React Framework
17 lines (16 loc) • 653 B
TypeScript
import { webpack } from 'next/dist/compiled/webpack/webpack';
import { NextConfig } from '../../../next-server/server/config';
export declare type ConfigurationContext = {
rootDirectory: string;
customAppFile: string | null;
isDevelopment: boolean;
isProduction: boolean;
isServer: boolean;
isClient: boolean;
assetPrefix: string;
sassOptions: any;
productionBrowserSourceMaps: boolean;
future: NextConfig['future'];
};
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>;