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
37 lines (29 loc) • 956 B
TypeScript
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
import {EndUserProps as BeBasedEndUserProps} from '../be-based/types';
import {Inserts} from '../../node_modules/stream-orator/types';
export interface EndUserProps extends IEnhancement{
from?: string,
to?: string,
shadowRootMode?: 'open' | 'closed',
encoding?: 'UTF-8' | 'UTF-16'
reqInit?: RequestInit,
wrapper?: string,
beBased?: boolean | BeBasedEndUserProps,
beOosoom?: string,
defer?: boolean,
inProgressCss?: string,
inserts?:Inserts,
between?: [lhs: string, rhs: string],
once?: boolean,
}
export interface AllProps extends EndUserProps{
to: string,
from: string,
}
export interface AllProps extends EndUserProps {}
export type AP = AllProps;
export type PAP = Partial<AP>;
export type ProPAP = Promise<PAP>;
export interface Actions{
write(self: AP & BEAllProps): ProPAP;
}