react-native-macos/types
Vojtech Novak 7b14180302 fix: remove unavailable EventEmitter TS export (#36109)
Summary:
currently, using TS, this is a valid import:

`import { EventEmitter } from 'react-native';`

However, looking at the [index file](https://github.com/facebook/react-native/blob/main/index.js) we can see that there is no such export.

I first thought I'd add the EventEmitter export in order to get the `index.js` in line with the types, but it appears that the Event Emitter will become a separate package at some point https://github.com/facebook/react-native/pull/34401 so removing it from the types seems to be better for future.

## Changelog

fix: remove unavailable EventEmitter TS export

Pick one each for the category and type tags:

[INTERNAL] [CHANGED] - remove unavailable EventEmitter TS export

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: https://github.com/facebook/react-native/pull/36109

Test Plan: tested locally: using `import { EventEmitter } from 'react-native';` correctly gives `TS2305: Module '"react-native"' has no exported member 'EventEmitter'.`

Reviewed By: javache, cortinico

Differential Revision: D43155568

Pulled By: NickGerleman

fbshipit-source-id: b9e8c3f4be9812637c8588d14a9ce4edf188ed36
2023-02-14 10:12:34 -08:00
..
__typetests__ Fix Errors with TypeScript Tests 2022-12-15 19:17:58 -08:00
modules react-native: Use number literals in TypeScript types for `FileReader` and `XMLHttpRequest` states (#36000) 2023-01-30 15:13:31 -08:00
private Fixup TS Organization (#35169) 2022-11-02 14:58:37 -07:00
public internalize Slider module (#35825) 2023-01-16 02:42:18 -08:00
.npmignore Fix: Publish types folder (#34727) 2022-09-20 12:39:58 -07:00
index.d.ts fix: remove unavailable EventEmitter TS export (#36109) 2023-02-14 10:12:34 -08:00
tsconfig.json Fixup TS Organization (#35169) 2022-11-02 14:58:37 -07:00
tslint.json Move TypeScript declarations into react-native (#34614) 2022-09-19 12:26:00 -07:00