@metamask/kernel-errors
Version:
9 lines • 340 B
text/typescript
import { BaseError } from "../BaseError.mjs";
/**
* Type guard to check if an error is a custom Ocap error (BaseError).
*
* @param error - The error to check.
* @returns `true` if the error is an instance of BaseError.
*/
export declare function isOcapError(error: Error): error is BaseError;
//# sourceMappingURL=isOcapError.d.mts.map