Skip to content

Conversation

LinusU
Copy link
Contributor

@LinusU LinusU commented Oct 14, 2025

Summary:

This adds support for the cause parameter, which Hermes supports. The motivation is to be able to use cause on errors without getting TypeScript errors.

Changelog:

[GENERAL] [ADDED] - Add TypeScript support for Error `cause` property

Test Plan:

I've tested this by adding es2022.error to my local TypeScript lib options, and that makes the type checking work 🎉

This adds support for the `cause` parameter, which Hermes supports
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 14, 2025
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants