react-smart-effect
Version:
Enhanced React useEffect and useLayoutEffect hooks with smart dependency tracking, debugging tools, and automatic optimization
23 lines • 572 B
TypeScript
import { PluginObj } from '@babel/core';
interface PluginState {
filename?: string;
opts: {
autoFix?: boolean;
warnOnly?: boolean;
};
}
/**
* Babel plugin to analyze useSmartEffect dependencies
*/
export default function babelPluginSmartEffect(): PluginObj<PluginState>;
export declare function createBabelConfig(options?: {
autoFix?: boolean;
warnOnly?: boolean;
}): {
plugins: ({
autoFix?: boolean;
warnOnly?: boolean;
} | typeof babelPluginSmartEffect)[][];
};
export {};
//# sourceMappingURL=babel.d.ts.map