mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Replace $FlowFixMe in WebSocketEvent (#48693)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48693 Changelog: [General][Changed] - Improved eventInitDict type in WebSocketEvent class Reviewed By: elicwhite, cortinico Differential Revision: D68207452 fbshipit-source-id: 55bb62134c2d67f250c5079304a9c2758d9361df
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9a29264ffb
commit
fa2fac1372
@@ -21,7 +21,7 @@
|
||||
class WebSocketEvent {
|
||||
type: string;
|
||||
|
||||
constructor(type: string, eventInitDict: $FlowFixMe) {
|
||||
constructor(type: string, eventInitDict: ?{...}) {
|
||||
this.type = type.toString();
|
||||
Object.assign(this, eventInitDict);
|
||||
}
|
||||
|
||||
@@ -9485,7 +9485,7 @@ declare module.exports: WebSocket;
|
||||
exports[`public API should not change unintentionally Libraries/WebSocket/WebSocketEvent.js 1`] = `
|
||||
"declare class WebSocketEvent {
|
||||
type: string;
|
||||
constructor(type: string, eventInitDict: $FlowFixMe): void;
|
||||
constructor(type: string, eventInitDict: ?{ ... }): void;
|
||||
}
|
||||
declare module.exports: WebSocketEvent;
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user