🚀 Feature: Add type guard for the error type #226
Labels
status: accepting prs
Please, send a pull request to resolve this! 🙏
type: feature
New enhancement or request 🚀
Bug Report Checklist
main
branch of the repository.Overview
Essentially a function that returns
isIntrinsicType(type) && type.intrinsicName === "error"
.Additional Info
I'm not sure what the best name for the function would be. Possible names:
isErrorType
Error
object's typeisTypeError
isIntrinsicErrorType
The text was updated successfully, but these errors were encountered: