payzli-ui-aryan
Version:
A custom react components library
29 lines (28 loc) • 1.49 kB
TypeScript
export declare const defaultOnClick: () => void;
type TransformOptions = Record<string, string | number>;
export declare const translatePhrase: (key: string, language?: string, placeholders?: TransformOptions) => string;
export declare const debounce: (func: any, delay: number) => (this: any, ...args: any[]) => void;
export declare const isNil: (data: any) => boolean;
export declare function maskFloat(amount: number | string, decimal?: number): string;
export declare const getDecimalPlaces: (input: number | string) => number;
export interface MoneyDisplay {
currencyDisplay: string;
Grouping: boolean;
minimumFractionDigits?: number;
minimumIntegerDigits?: number;
abbreviate?: boolean;
decimalPlaces?: number;
}
export declare const formatNumberAbbreviated: (num: number, decimalPlaces?: number) => string;
export declare function transformCurrency(amount: number, currency: string | undefined, options: MoneyDisplay): string;
export declare enum currencyDisplay {
symbol = "symbol",
code = "code",
name = "name",
none = "none"
}
export declare const formatNumberToDecimal: (number: string | number, decimalPlace: number) => string;
export declare const utcToLocalTime: (inputDate: string, format?: string, inputFormat?: string) => string;
export declare const showTime: (DateTime: string, output_date_format?: string, input_date_format?: string) => string;
export declare const insertLocalTimeInString: (str: string) => string;
export {};