@surface/custom-element
Version:
Provides support of directives and data binding on custom elements.
5 lines (4 loc) • 581 B
TypeScript
import type Expression from "../types/expression.js";
import type Factory from "../types/fatctory";
import type ObservablePath from "../types/observable-path.js";
export default function elementFactory(tag: string, attributes?: [key: string, value: string][], binds?: [type: "oneway" | "twoway" | "interpolation", key: string, value: Expression, observables: ObservablePath[]][], events?: [key: string, value: Expression][], customDirectives?: [key: Expression, value: Expression, observables: [key: ObservablePath[], value: ObservablePath[]]][], childs?: Factory[]): Factory;