UNPKG

siegel

Version:

Web application development ecosystem

14 lines (13 loc) 550 B
declare const clearState: (id: string) => void; /** * Executes callback to memoize result and returns it * whenever called until dependencies have changed * * @param cb - Result to memoize * @param dependencyValue - Value to compare with one from previous callback execution in order to determine whether to return memoized value * @param id - Memoization ID * @returns memoized result */ declare function memo(cb: () => void, dependencyValue: number | string | boolean, id: number | string): any; export { clearState }; export default memo;