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:
Dawid Małecki
2025-01-16 02:19:54 -08:00
committed by Facebook GitHub Bot
parent 9a29264ffb
commit fa2fac1372
2 changed files with 2 additions and 2 deletions
@@ -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;
"