Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Misspelled `BridgeEvents`
  • Loading branch information
esanzgar committed Oct 12, 2021
1 parent 429048a commit d91b8d5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/annotator/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default class Sidebar {
this.show();
});

/** @type{Array<[import('../types/bridge-events').BrideEvents, function]>} */
/** @type {Array<[import('../types/bridge-events').BridgeEvents, function]>} */
const eventHandlers = [
['loginRequested', this.onLoginRequest],
['logoutRequested', this.onLogoutRequest],
Expand Down
4 changes: 2 additions & 2 deletions src/shared/bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Bridge {
* Make a method call on all channels, collect the results and pass them to a
* callback when all results are collected.
*
* @param {import('../types/bridge-events').BrideEvents} method - Name of remote method to call.
* @param {import('../types/bridge-events').BridgeEvents} method - Name of remote method to call.
* @param {any[]} args - Arguments to method. Final argument is an optional
* callback with this type: `(error: string|Error|null, ...result: any[]) => void`.
* This callback, if any, will be triggered once a response (via `postMessage`)
Expand Down Expand Up @@ -132,7 +132,7 @@ export class Bridge {
* Register a listener to be invoked when any connected channel sends a
* message to this `Bridge`.
*
* @param {import('../types/bridge-events').BrideEvents} method
* @param {import('../types/bridge-events').BridgeEvents} method
* @param {(...args: any[]) => void} listener -- Final argument is an optional
* callback of the type: `(error: string|Error|null, ...result: any[]) => void`.
* This callback must be invoked in order to respond (via `postMessage`)
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/services/frame-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class FrameSyncService {
/**
* Send an RPC message to the host frame.
*
* @param {import('../../types/bridge-events').BrideEvents} method
* @param {import('../../types/bridge-events').BridgeEvents} method
* @param {any[]} args
*/
notifyHost(method, ...args) {
Expand Down
2 changes: 1 addition & 1 deletion src/types/bridge-events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ type GuestToSidebarEvents = {
TOGGLE_ANNOTATION_SELECTION: 'toggleAnnotationSelection';
};

export type BrideEvents =
export type BridgeEvents =
| 'connect'
| SidebarToHostEvents[keyof SidebarToHostEvents]
| HostToSidebarEvents[keyof HostToSidebarEvents]
Expand Down

0 comments on commit d91b8d5

Please sign in to comment.