@pk-design/react-ui-kit
Version:
Reusable react components
13 lines (12 loc) • 688 B
TypeScript
import { OptionProps, SelectProps, SelectState } from './props';
export declare const isString: (value: any) => boolean;
export declare const isNumber: (value: any) => boolean;
export declare const isObject: (value: any) => boolean;
export declare const isFunction: (value: any) => boolean;
export declare const stringify: (value: object) => string;
export declare const isEqual: (obj1?: object, obj2?: object) => boolean;
/**
* Default algorithm for filtering results.
*/
export declare function defaultFilterBy(option: OptionProps, props: SelectProps & SelectState): boolean;
export declare function debounce(callback: Function, interval: number): (...args: any) => void;