Commit abcb782
Add 'es2022.error' to TypeScript lib options (#56968)
Summary:
This adds support for the `cause` parameter, which Hermes supports since 2021. The motivation is to be able to use `cause` on errors without getting TypeScript errors.
## Changelog:
```text
[GENERAL] [ADDED] - Add TypeScript support for Error `cause` property
```
Pull Request resolved: #56968
Test Plan: I've tested this by adding `es2022.error` to my local TypeScript lib options, and that makes the type checking work 🎉
Reviewed By: cortinico
Differential Revision: D106364666
Pulled By: fabriziocucci
fbshipit-source-id: 42b9663dfac7b65371addd08fc821f073ac36ce41 parent d7b5314 commit abcb782
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments