@mijadesign/mjui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
9 lines (8 loc) • 564 B
TypeScript
export declare const isObject: (val: unknown) => val is Record<any, any>;
export declare const isFunction: (val: unknown) => val is Function;
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
export declare const upperCaseFirst: (str: string) => string;
export declare const clamp: (num: number, min: number, max: number) => number;
export declare function preventDefault(event: React.TouchEvent<HTMLElement> | TouchEvent, isStopPropagation?: boolean): void;
/** 获取导航栏高度 */
export declare function getHeaderHeight(): any;