Files
med-notes/.pnpm-store/v10/files/75/9561801ed80805df06dc00335e3963adc4f0a537ad91e09ba4d7c041c37a521d8443a903de5beba2c1e5b88091071db002b4d92434a8b9231d5b1b5ebd12b1
2025-05-09 05:30:08 +02:00

17 lines
465 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = assertNode;
var _isNode = require("../validators/isNode.js");
function assertNode(node) {
if (!(0, _isNode.default)(node)) {
var _node$type;
const type = (_node$type = node == null ? void 0 : node.type) != null ? _node$type : JSON.stringify(node);
throw new TypeError(`Not a valid node of type "${type}"`);
}
}
//# sourceMappingURL=assertNode.js.map