UNPKG

@fe-hl/shared

Version:

javascript常用工具库,支持typescript

35 lines (34 loc) 791 B
export type FormatType = 'YYYY-MM-DD' | 'YYYY-MM-DD HH:mm:ss' | 'HH:mm:ss'; export type DateType = Date | number; export declare enum STORAGE { LOCAL = "localStorage", SESSION = "sessionStorage" } export interface ITHOUSANDTHS { num?: number | string; decimals?: number; decimal?: string; separator?: string; prefix?: string; suffix?: string; } export interface Icallback { (): void; } export type BrowserType = { trident: boolean; presto: boolean; webKit: boolean; gecko: boolean; mobile: boolean; ios: boolean; android: boolean; iPhone: boolean; iPad: boolean; webApp: boolean; qq: boolean; qqBrowser: boolean; ali: boolean; weixin: boolean; yys: boolean; };