Skip to content

Commit 91728e2

Browse files
mischnicfacebook-github-bot
authored andcommitted
Remove unused and incorrect type declarations (#32570)
Summary: See #32566 This file doesn't have a `flow` comment, and the types that I removed here are incorrect anyway (missing a generic type parameter) because Flow didn't check them. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [General] [Fixed] - Remove unused and incorrect type declarations in WebSocketInterceptor Pull Request resolved: #32570 Test Plan: See #32566 Reviewed By: lunaleaps Differential Revision: D32315077 Pulled By: GijsWeterings fbshipit-source-id: d3b826a01a0bb8e38380de5b79cb6b5d13db2ef1
1 parent 6df04ae commit 91728e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/WebSocket/WebSocketInterceptor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const originalRCTWebSocketSend = NativeWebSocketModule.send;
1717
const originalRCTWebSocketSendBinary = NativeWebSocketModule.sendBinary;
1818
const originalRCTWebSocketClose = NativeWebSocketModule.close;
1919

20-
let eventEmitter: NativeEventEmitter;
21-
let subscriptions: Array<EventSubscription>;
20+
let eventEmitter;
21+
let subscriptions;
2222

2323
let closeCallback;
2424
let sendCallback;

0 commit comments

Comments
 (0)