CoolFace
Apppublic

Ejdjdososs/fable-ai

sourceHugging Facemitupdated 3mo agoView on Hugging Face
0likes
assertNode.js17 linesDownload Raw Back to asserts
1"use strict";2 3Object.defineProperty(exports, "__esModule", {4  value: true5});6exports.default = assertNode;7var _isNode = require("../validators/isNode.js");8function assertNode(node) {9  if (!(0, _isNode.default)(node)) {10    var _node$type;11    const type = (_node$type = node == null ? void 0 : node.type) != null ? _node$type : JSON.stringify(node);12    throw new TypeError(`Not a valid node of type "${type}"`);13  }14}15 16//# sourceMappingURL=assertNode.js.map17