Narrows a caught value, which TypeScript types as unknown, without a cast.
unknown
Any caught value.
Whether the server rejected the request's contents, as opposed to failing for some other reason.
catch (error) { if (isRestClientValidationError(error)) { error.errors.query // typed } } Copy
catch (error) { if (isRestClientValidationError(error)) { error.errors.query // typed } }
Narrows a caught value, which TypeScript types as
unknown, without a cast.