UNPKG

company-autocomplete

Version:
14 lines (13 loc) 885 B
export declare const isString: (value: any) => boolean; export declare const isFunction: (value: Function) => boolean; export declare const getSearchUrl: (keyword: string, defaultUrl: string, customUrl?: string) => string; export declare const getAvatar: (id: string, urls: string[]) => Promise<string>; export declare const replaceAll: (str: string, find: string, replace: string) => string; export declare const getSiblings: (element: HTMLElement) => HTMLElement[]; export declare const setSuggestionItemClass: (suggestions: HTMLElement[], index: number, className: string) => void; export declare const removeHtmlTags: (str: string) => string; export declare const stringToJson: (str: string) => any[]; export declare const objectToQueryString: (object: { [key: string]: any; }, prefix?: string) => string; export declare const splitArray: <T>(arr: T[], size: number) => T[][];