UNPKG

@metamask/kernel-errors

Version:
15 lines 548 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isMarshaledError = isMarshaledError; const superstruct_1 = require("@metamask/superstruct"); const constants_ts_1 = require("../constants.cjs"); /** * Checks if a value is a {@link MarshaledError}. * * @param value - The value to check. * @returns Whether the value is a {@link MarshaledError}. */ function isMarshaledError(value) { return (0, superstruct_1.is)(value, constants_ts_1.MarshaledErrorStruct); } //# sourceMappingURL=isMarshaledError.cjs.map