all files / src/ vnode.js

100% Statements 7/7
100% Branches 0/0
100% Functions 1/1
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19      11× 11×     223×     223×     223×     11×  
/** Virtual DOM Node */
"use strict";
 
exports.__esModule = true;
exports["default"] = VNode;
 
function VNode(nodeName, attributes, children) {
	/** @type {string|function} */
	this.nodeName = nodeName;
 
	/** @type {object<string>|undefined} */
	this.attributes = attributes;
 
	/** @type {array<VNode>|undefined} */
	this.children = children;
}
 
module.exports = exports["default"];