igniteui-webcomponents
Version:
Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
18 lines (17 loc) • 632 B
TypeScript
type DateTimeFormatterConfig = {
[name: string]: Intl.DateTimeFormatOptions;
};
declare class DateTimeFormatters<T extends DateTimeFormatterConfig> {
private _locale;
private _configuration;
private _formatters;
private _update;
constructor(_locale: string, _configuration: T);
get(name: keyof T): Intl.DateTimeFormat;
get configuration(): T;
get locale(): string;
set locale(value: string);
update(configuration: Partial<T>): void;
}
export declare function createDateTimeFormatters<T extends DateTimeFormatterConfig>(locale: string, configuration: T): DateTimeFormatters<T>;
export {};