@metamask/kernel-errors
Version:
12 lines • 416 B
JavaScript
import { is } from "@metamask/superstruct";
import { MarshaledOcapErrorStruct } from "../constants.mjs";
/**
* Checks if a value is a {@link MarshaledOcapError}.
*
* @param value - The value to check.
* @returns Whether the value is a {@link MarshaledOcapError}.
*/
export function isMarshaledOcapError(value) {
return is(value, MarshaledOcapErrorStruct);
}
//# sourceMappingURL=isMarshaledOcapError.mjs.map