File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- import type { TreeProto } from './ast.js' ;
17
16
import * as ast from './ast.js' ;
18
17
import * as dom from './dom.js' ;
19
18
19
+ // Reexport all types from ast
20
+ export type {
21
+ TreeProto ,
22
+ DocumentNodeProto ,
23
+ NodeProto ,
24
+ ElementNodeProto ,
25
+ TextNodeProto ,
26
+ AttributeProto ,
27
+ } from './ast.js' ;
28
+
20
29
export interface InstructionMap {
21
30
[ key : string ] : ( element : Element ) => void ;
22
31
}
@@ -26,10 +35,10 @@ function defaultHandleError(tagName, e: Error) {
26
35
}
27
36
28
37
export function renderAst (
29
- tree : TreeProto ,
38
+ tree : ast . TreeProto ,
30
39
instructions : InstructionMap ,
31
40
{ handleError = defaultHandleError } = { }
32
- ) : TreeProto {
41
+ ) : ast . TreeProto {
33
42
const doc = dom . fromTreeProto ( tree ) ;
34
43
35
44
// TODO: Optimization opportunity by writing a custom walk instead of N querySelectorAll.
You can’t perform that action at this time.
0 commit comments