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
27 lines (17 loc) • 596 B
TypeScript
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
export interface EndUserProps<Exports=any> extends IEnhancement<HTMLScriptElement>{
// //guid?: string;
// //shareByID?: boolean;
// enabled?: boolean;
// beOosoom?: string;
preferAttrForBareImports?: boolean;
attached: boolean;
}
export interface AllProps<Exports=any> extends EndUserProps<Exports>{
exports?: Exports;
}
export type PAP = Partial<AllProps>;
export type ProPAP = Promise<PAP>
export interface Actions{
hydrate(ap: AllProps): Promise<PAP>;
}