UNPKG

565 BTypeScriptView Raw
1/**
2 * Creates an array containing the nodes rendered from the supplied markup. The
3 * optionally supplied `handleScript` function will be invoked once for each
4 * <script> element that is rendered. If no `handleScript` function is supplied,
5 * an exception is thrown if any <script> elements are rendered.
6 *
7 * return {array<DOMElement|DOMTextNode>} An array of rendered nodes.
8 */
9declare function createNodesFromMarkup(markup: string, handleScript?: (script: string) => void): any[];
10
11declare namespace createNodesFromMarkup {}
12
13export = createNodesFromMarkup;