UNPKG

@yukimoto/use-clamp-text

Version:

This package provide a custome hook that can limit the text in the container in specified line number.

10 lines (9 loc) 527 B
import type { DebouncedFunc, DebounceSettings } from 'lodash'; /** * Enhanced debounce hook, from https://github.com/imbhargav5/rooks/blob/main/src/hooks/useDebounce.ts * @param callback The callback function to debounce * @param wait The duration to debounce in milisecond * @param options DebounceSettings from lodash * @returns Returns the debounced function. */ export declare const useDebounce: <T extends (...args: unknown[]) => unknown>(callback: T, wait?: number, options?: DebounceSettings) => DebouncedFunc<T>;