@dooboostore/dom-render
Version:
html view template engine
34 lines • 1.24 kB
TypeScript
import { ConstructorType } from '@dooboostore/core/types';
import { RawSet } from '../rawsets/RawSet';
import { Router } from '../routers/Router';
import { Messenger } from '../messenger/Messenger';
import { TargetElement } from './TargetElement';
import { TargetAttr } from './TargetAttr';
import { Attrs } from '../rawsets/Attrs';
import { OperatorAround } from '../operators/OperatorExecuter';
export type Config<T = any> = {
window: Window;
targetElements?: TargetElement[];
targetAttrs?: TargetAttr[];
operatorAround?: {
[key in keyof Attrs]?: OperatorAround;
};
onElementInit?: (name: string, obj: any, rawSet: RawSet, targetElement: TargetElement) => any;
onAttrInit?: (name: string, attrValue: string, obj: any, rawSet: RawSet) => any;
proxyExcludeTyps?: ConstructorType<any>[];
proxyExcludeOnBeforeReturnSets?: string[];
proxyExcludeOnBeforeReturnGets?: string[];
scripts?: {
[n: string]: any;
};
router?: Router;
messenger?: Messenger;
eventVariables?: {
[n: string]: any;
};
applyEvents?: {
attrName: string;
callBack: (elements: Element, attrValue: string, obj: any) => void;
}[];
};
//# sourceMappingURL=Config.d.ts.map