UNPKG

be-enhanced

Version:

be-enhanced provides a base class that enables casting spells, or enhancing server-rendered DOM elements based on cross-cutting custom attributes

28 lines (21 loc) 792 B
import {BVAEndUserProps, BVAAllProps, BVAActions} from '../be-value-added/types'; import {BEAllProps} from '../be-enhanced/types'; export interface EndUserProps extends BVAEndUserProps{ format?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions, locale?: string; observeAttr?: string; currency?: string; } export interface AllProps extends EndUserProps, BVAAllProps{ attached?: boolean; intlDateFormat?: Intl.DateTimeFormat, intlNumberFormat: Intl.NumberFormat, } export type AP = AllProps; export type PAP = Partial<AP>; export type ProPAP = Promise<PAP>; export interface Actions extends BVAActions { formatNumber(self: AP & BEAllProps): void; formatDate(self: this): void; onFormattingChange(self: this): PAP; }