A framework for building native applications using React
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: https://github.com/facebook/react-native/pull/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: 42b9663dfac7b65371addd08fc821f073ac36ce4
A
Anders Jansson committed
abcb7821b1e43ba5ff0ec92c746e6fbc4b2a10f3
Parent: d7b5314
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 5/26/2026, 3:23:31 PM