commonui-lib-test
Version:
"#common ui lib test"
23 lines (22 loc) • 1.5 kB
TypeScript
/// <reference types="numeral" />
export declare function formatCurrency(s: string, n?: number, formatOption?: string): string;
export declare function formatShortNumeral(s: string | number, roundingFunction?: RoundingFunction): string;
export declare function formatPercentages(s: string | number): string;
export declare function formatWithOption(s: string | number, formatOption?: string, roundingFunction?: RoundingFunction): string;
export declare function convertString2Numeral(s: string | number): number;
export declare function createCountdownTimer(time: number, interval: number): import("rxjs").Observable<number>;
export declare function formatActorNameString(value: string, wordCount: number, omissionString?: string): string;
export declare function formatShortString(value: string, maxlength?: number, omissionString?: string): string;
export declare function formatStringSize(target: fairygui.GTextField, str: string, maxFontSize?: number): void;
declare let commonUtils: {
formatCurrency: typeof formatCurrency;
formatShortNumeral: typeof formatShortNumeral;
formatPercentages: typeof formatPercentages;
formatWithOption: typeof formatWithOption;
convertString2Numeral: typeof convertString2Numeral;
createCountdownTimer: typeof createCountdownTimer;
formatActorNameString: typeof formatActorNameString;
formatShortString: typeof formatShortString;
formatStringSize: typeof formatStringSize;
};
export default commonUtils;