You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add TextEncoder and TextDecoder TypeScript type declarations
Both TextEncoder and TextDecoder are now natively available in Hermes:
- TextEncoder since React Native 0.74 (facebook/hermes#948)
- TextDecoder since React Native 0.85 (facebook/hermes#1855)
This adds global type declarations matching the Hermes implementation,
following the same interface + var pattern used by all other Web API
types in this file.
Closes#56325
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## v0.85.0-rc.7
4
4
5
+
### Added
6
+
7
+
-**TypeScript**: Add global type declarations for `TextEncoder` and `TextDecoder` ([#56326](https://github.com/facebook/react-native/pull/56326) by [@deyaaeldeen](https://github.com/deyaaeldeen))
0 commit comments