datezone
Version:
A lightweight and comprehensive date and timeZone utility library for JavaScript.
20 lines • 754 B
TypeScript
/**
* Get a cached NumberFormat instance or create a new one
* @param locale The locale for formatting
* @param options NumberFormat options
* @param fallbackLocale Fallback locale if the primary locale fails (defaults to 'en')
* @returns Cached Intl.NumberFormat instance
*/
export declare function getCachedNumberFormat(locale: string, options?: Intl.NumberFormatOptions, fallbackLocale?: string): Intl.NumberFormat;
/**
* Clear the NumberFormat cache (useful for testing or memory management)
*/
export declare function clearNumberFormatCache(): void;
/**
* Get cache information for debugging
*/
export declare function getNumberFormatCacheInfo(): {
size: number;
keys: string[];
};
//# sourceMappingURL=number-format-cache.d.ts.map