UNPKG

@the-little-books/little

Version:

20 lines 462 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.text = exports.h = void 0; function h(tag, attributes = {}, ch) { return { kind: "Node.Element", tag, attributes, contents: Array.isArray(ch) ? ch : ch == null ? [] : [ch], }; } exports.h = h; function text(value) { return { kind: "Node.Text", value, }; } exports.text = text; //# sourceMappingURL=node-api.js.map