std/build/error
std/build/error
Variables
isMissingEntry
const isMissingEntry: <I>(input) => input is I & { code: "ENOENT" };Defined in: apps/website/.api-docs-entry/std/build/error/index.d.ts:8
Whether a caught value is Node's absent-path signal (ENOENT).
The owner of the unknown-error boundary: an optional-resource read distinguishes
"absent is fine" from "unreadable must fail" by decoding the platform code once here,
instead of every caller duck-reading code off an unknown.
Type Parameters
| Type Parameter |
|---|
I |
Parameters
| Parameter | Type |
|---|---|
input |
I |
Returns
input is I & { code: "ENOENT" }
Functions
getErrorMessage()
function getErrorMessage(value): string;Defined in: apps/website/.api-docs-entry/std/build/error/index.d.ts:12
Parameters
| Parameter | Type |
|---|---|
value |
unknown |
Returns
string
toError()
function toError(value): Error;Defined in: apps/website/.api-docs-entry/std/build/error/index.d.ts:11
Parameters
| Parameter | Type |
|---|---|
value |
unknown |
Returns
Error