Skip to content

Add 'es2022.error' to TypeScript lib options#54147

Closed
LinusU wants to merge 1 commit into
react:mainfrom
LinusU:patch-1
Closed

Add 'es2022.error' to TypeScript lib options#54147
LinusU wants to merge 1 commit into
react:mainfrom
LinusU:patch-1

Conversation

@LinusU

@LinusU LinusU commented Oct 14, 2025

Copy link
Copy Markdown
Contributor

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
@react-native-bot

Copy link
Copy Markdown
Collaborator

This PR is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label.

@react-native-bot react-native-bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Apr 13, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This PR was closed because it has been stalled for 7 days with no activity.

@react-native-bot react-native-bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Apr 20, 2026
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.

3 participants