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
26 lines (18 loc) • 546 B
TypeScript
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
import {AllProps as XPAsAllProps} from '../xp-as/types';
export interface EndUserProps extends IEnhancement{
xpAsAttr: string;
}
export interface AllProps extends EndUserProps{
}
export type AP = AllProps;
export type PAP = Partial<AP>;
export type ProPAP = Promise<PAP>;
export type BAP = AP & BEAllProps;
export interface Actions {
hydrate(self: BAP): ProPAP;
}
export interface Factor{
NameOfProp: string,
xpAs: XPAsAllProps,
}