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 (19 loc) • 669 B
TypeScript
import {BEAllProps, IEnhancement} from '../trans-render/be/types';
import { RoundaboutReady } from '../trans-render/froop/types';
export interface EndUserProps extends IEnhancement{
to: string;
nudges: boolean;
on: string;
}
export interface AllProps extends EndUserProps {
//isParsed?: boolean;
}
export type AP = AllProps;
export type PAP = Partial<AP>;
export type ProPAP = Promise<PAP>;
export type BAP = AllProps & BEAllProps & RoundaboutReady;
export interface Actions{
hydrate(self: BAP): ProPAP;
// findTarget(self: this): Promise<void>;
// handleCommit(self: this, e: KeyboardEvent): Promise<void>;
}