-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EventEmitter ts definition file (#36462)
Summary: There's an error in the `d.ts` file for EventEmitter which causes the following error: ``` This expression is not constructable. Type 'typeof import(".../vendor/emitter/EventEmitter")' has no construct signatures. const emitter = new EventEmitter(); ~~~~~~~~~~~~ ``` See https://github.com/facebook/react-native/blob/dce9d8d5de381fe53760ddda0d6cbbdfb5be00e4/Libraries/vendor/emitter/EventEmitter.js#L63 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [GENERAL] [FIXED] -Fixes an issue with the EventEmitter type definition file For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> Pull Request resolved: #36462 Reviewed By: cipolleschi Differential Revision: D44130846 Pulled By: javache fbshipit-source-id: 64cecdf55e58b99b243392811226e5095d5dc006
- Loading branch information
1 parent
681d7f8
commit 4acef8e
Showing
4 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters