Skip to content

Commit

Permalink
Replace $FlowFixMe in WebSocketEvent (#48693)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #48693

Changelog:
[General][Changed] - Improved eventInitDict type in WebSocketEvent class

Reviewed By: elicwhite, cortinico

Differential Revision: D68207452

fbshipit-source-id: 55bb62134c2d67f250c5079304a9c2758d9361df
  • Loading branch information
coado authored and facebook-github-bot committed Jan 16, 2025
1 parent 9a29264 commit fa2fac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
"
Expand Down

0 comments on commit fa2fac1

Please sign in to comment.