Spaces:
Running
Running
Download node_modules/@mswjs/interceptors/src/utils/isNodeLikeError.ts from fffiloni/live-vision: direct link, hf CLI and curl.
- Browser
- Download file 235 Bytes
-
https://huggingface.co/spaces/fffiloni/live-vision/resolve/main/node_modules/%40mswjs/interceptors/src/utils/isNodeLikeError.ts
- Command line
-
hf download hf://spaces/fffiloni/live-vision/node_modules/@mswjs/interceptors/src/utils/isNodeLikeError.ts
-
curl -L -o isNodeLikeError.ts https://huggingface.co/spaces/fffiloni/live-vision/resolve/main/node_modules/%40mswjs/interceptors/src/utils/isNodeLikeError.ts
235 Bytes
| export function isNodeLikeError( | |
| error: unknown | |
| ): error is NodeJS.ErrnoException { | |
| if (error == null) { | |
| return false | |
| } | |
| if (!(error instanceof Error)) { | |
| return false | |
| } | |
| return 'code' in error && 'errno' in error | |
| } | |