Skip to content

Commit

Permalink
Use PascalCase naming for types
Browse files Browse the repository at this point in the history
  • Loading branch information
robertknight committed Jul 21, 2021
1 parent efc316d commit 95aea61
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/shared/bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default class Bridge {

/**
* Deprecated - Remove after MessagePort conversion
* @typedef windowOptions
*
* @typedef WindowOptions
* @prop {Window} source - The source window
* @prop {string} origin - The origin of the document in `source`
* @prop {string} token - Shared token between the `source` and this window
Expand All @@ -43,7 +44,7 @@ export default class Bridge {
* The created channel is added to the list of channels which `call`
* and `on` send and receive messages over.
*
* @param {windowOptions|MessagePort} options
* @param {WindowOptions|MessagePort} options
* @return {RPC} - Channel for communicating with the window.
*/
createChannel(options) {
Expand Down Expand Up @@ -99,7 +100,7 @@ export default class Bridge {
* The created channel is added to the list of channels which `call`
* and `on` send and receive messages over.
*
* @param {windowOptions} options
* @param {WindowOptions} options
* @return {RPC} - Channel for communicating with the window.
* @deprecated
*/
Expand Down

0 comments on commit 95aea61

Please sign in to comment.