MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / isNodeErrorWithCode

Function isNodeErrorWithCode

packages/node/src/streams/tail.ts:18–22  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

16}
17
18function isNodeErrorWithCode(error: unknown): error is Readonly<{ code: string }> {
19 if (!error || typeof error !== "object") return false;
20 const code = (error as { code?: unknown }).code;
21 return typeof code === "string";
22}
23
24async function readUtf8Slice(
25 filePath: string,

Callers 1

iteratorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected