import { DependencyList, EffectCallback } from "react"; //#region src/useCustomCompareEffect/interface.d.ts type DepsEqualFnType = (prevDeps: TDeps, nextDeps: TDeps) => boolean; /** * @title useCustomCompareEffect */ type UseCustomCompareEffect = ( /** * @zh 副作用函数 * @zh-Hant 副作用函數 * @en effect callback */ effect: EffectCallback, /** * @zh 依赖列表 * @zh-Hant 依賴列表 * @en deps */ deps: TDeps, /** * @zh 依赖比较函数 * @zh-Hant 依賴比較函數 * @en deps compare function */ depsEqual: DepsEqualFnType) => void; //#endregion export { DepsEqualFnType, UseCustomCompareEffect };