MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isErrnoException

Function isErrnoException

src/services/teamMemorySync/index.ts:142–144  ·  view source on GitHub ↗

* Type guard narrowing an unknown error to a Node.js errno-style exception. * Uses `in` narrowing so no `as` cast is needed at call sites.

(e: unknown)

Source from the content-addressed store, hash-verified

140 * Uses `in` narrowing so no `as` cast is needed at call sites.
141 */
142function isErrnoException(e: unknown): e is NodeJS.ErrnoException {
143 return e instanceof Error && 'code' in e && typeof e.code === 'string'
144}
145
146// ─── Auth & endpoint ─────────────────────────────────────────
147

Callers 2

walkDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected