From 91728e2266375b954302ba0cd4b5daf641aefc23 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Thu, 11 Nov 2021 04:42:03 -0800 Subject: [PATCH] Remove unused and incorrect type declarations (#32570) Summary: See https://github.com/facebook/react-native/pull/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 [General] [Fixed] - Remove unused and incorrect type declarations in WebSocketInterceptor Pull Request resolved: https://github.com/facebook/react-native/pull/32570 Test Plan: See https://github.com/facebook/react-native/pull/32566 Reviewed By: lunaleaps Differential Revision: D32315077 Pulled By: GijsWeterings fbshipit-source-id: d3b826a01a0bb8e38380de5b79cb6b5d13db2ef1 --- Libraries/WebSocket/WebSocketInterceptor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/WebSocket/WebSocketInterceptor.js b/Libraries/WebSocket/WebSocketInterceptor.js index 0e4a78d630b400..23e61bb217c27c 100644 --- a/Libraries/WebSocket/WebSocketInterceptor.js +++ b/Libraries/WebSocket/WebSocketInterceptor.js @@ -17,8 +17,8 @@ const originalRCTWebSocketSend = NativeWebSocketModule.send; const originalRCTWebSocketSendBinary = NativeWebSocketModule.sendBinary; const originalRCTWebSocketClose = NativeWebSocketModule.close; -let eventEmitter: NativeEventEmitter; -let subscriptions: Array; +let eventEmitter; +let subscriptions; let closeCallback; let sendCallback;