ReadonlyCreates an error result with a new Error.
A ResultErr containing a new Error.
Creates an error result with the given error.
The error cannot be nullish, since null in the error slot means "this
result is ok". Nullish arguments are rejected at compile time, and replaced
with a new Error at runtime as a last resort. See NotNullish.
Any other value is passed through as is, including falsy ones.
The type of the error. Cannot be nullish.
The error to wrap in an error result.
A ResultErr containing the error.
See err.