Add support to define cause
type, instead of always unknown
#54021
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
lib Update Request
Configuration Check
My compilation target is
ES2022
and my lib isthe default
.Missing / Incorrect Definition
I would like to suggest to improve the
Error
type to accept generic, so we can define an error cause directly, without workarounds on class constructors.https://github.com/microsoft/TypeScript/blob/main/src/lib/es2022.error.d.ts
Sample Code
The text was updated successfully, but these errors were encountered: