UNPKG

@b-side/parser

Version:

HTML Parser used to parse HTML string and bind data to it.

21 lines 547 B
import { bsElement } from './element'; declare enum Events { attributes = "attributes", end = "end", expression = "expression", style = "style", text = "text", tag = "newTag" } export declare class Parser { private string; private callbacks; constructor(string: string); on(type: Events, callback: <T, O>(data: T, options?: O) => void): void; private notify; private discoverChilds; private discoverElement; toElements(): Promise<bsElement>; } export {}; //# sourceMappingURL=parser.d.ts.map