@wayneintacart/react-hydration-overlay
Version:
Fork of React utility for descriptive hydration mismatch errors.
16 lines (13 loc) • 568 B
text/typescript
import { Configuration } from 'webpack';
type WebpackPluginOptions = {
/**
* The selector for the root element of your app.
*/
appRootSelector: string;
/**
* A function that returns true if the given entry point is the main app entry point.
*/
isMainAppEntryPoint: (string: any) => boolean;
};
declare const withHydrationOverlayWebpack: ({ appRootSelector, isMainAppEntryPoint }: WebpackPluginOptions) => (originalWebpackConfig?: Configuration) => Configuration;
export { type WebpackPluginOptions, withHydrationOverlayWebpack };