@fe-hl/shared
Version:
javascript常用工具库,支持typescript
12 lines (11 loc) • 810 B
TypeScript
import { BrowserType, Icallback, ITHOUSANDTHS } from './types';
export declare const thousandths: ({ num, decimals, decimal, separator, prefix, suffix, }?: ITHOUSANDTHS) => string;
export declare const mobileFormat: (mobileStr: string) => string | undefined;
export declare const cardFormat: (cardStr: string) => string | undefined;
export declare const bankCardFormat: (bankCardStr: string) => string | undefined;
export declare const loadScript: (url: string, callback: Icallback) => void;
export declare const queryUrlParams: <T = any>(url?: string) => T;
export declare const noNumericToBlank: (value: string) => string;
export declare const getBrowser: () => BrowserType;
export declare const colorRGBToHex: (rgb: string) => string;
export declare const colorHexToRGB: (hex: string) => string;