MCPcopy
hub / github.com/nodejs/corepack / NodeError

Interface NodeError

sources/nodeUtils.ts:3–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import os from 'os';
2
3export interface NodeError extends Error {
4 code: string;
5}
6
7export function isNodeError(err: any): err is NodeError {
8 return !!err?.code;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…