Skip to main content

isTimeoutError

Type guard function to check if the given error is a TimeoutError

Signature

const isTimeoutError: (error: unknown) => error is TimeoutError

Parameters

NameTypeDescription
error-The error object to check

Returns

Whether the error is a TimeoutError