UNPKG

@metamask/kernel-errors

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