Skip to content

xdash API Reference v0.5.14


xdash API Reference / asError

Function: asError() ​

asError(value): Error

Defined in: src/typed.ts:26

Converts a value to an error.

Parameters ​

value ​

unknown

value to convert

Returns ​

Error

the value as an error

Released under the MIT License.