UNPKG

240 BTypeScriptView Raw
1import type { useEffect, useLayoutEffect } from 'react';
2type EffectHookType = typeof useEffect | typeof useLayoutEffect;
3export declare const createUpdateEffect: (hook: EffectHookType) => EffectHookType;
4export default createUpdateEffect;