UNPKG

@fisherwise/react-autocomplete-hint

Version:
9 lines (8 loc) 536 B
import { MutableRefObject, RefCallback } from "react"; import { IHintOption } from "."; type MutableRef<T> = RefCallback<T> | MutableRefObject<T> | null; export declare function mergeRefs(...refs: Array<MutableRef<HTMLElement | null>>): RefCallback<HTMLElement>; export declare function interpolateStyle(styles: CSSStyleDeclaration, attr: string, subattr?: string): string; export declare function sortAsc<T>(a: T, b: T): 0 | 1 | -1; export declare function getFirstDuplicateOption(array: Array<IHintOption>): string | null; export {};