Skip to content

Commit

Permalink
Remove unused and incorrect type declarations (#32570)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mischnic authored and facebook-github-bot committed Nov 11, 2021
1 parent 6df04ae commit 91728e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/WebSocket/WebSocketInterceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const originalRCTWebSocketSend = NativeWebSocketModule.send;
const originalRCTWebSocketSendBinary = NativeWebSocketModule.sendBinary;
const originalRCTWebSocketClose = NativeWebSocketModule.close;

let eventEmitter: NativeEventEmitter;
let subscriptions: Array<EventSubscription>;
let eventEmitter;
let subscriptions;

let closeCallback;
let sendCallback;
Expand Down

0 comments on commit 91728e2

Please sign in to comment.