Skip to content

Commit

Permalink
Merge pull request #11 from rikoe/deprecate-use-of-addContextListener…
Browse files Browse the repository at this point in the history
…-with-only-a-handler

chore: fix linting errors due to prettier
  • Loading branch information
kriswest authored Mar 9, 2021
2 parents f94a2b4 + 401eba0 commit 470f368
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/api/Channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@ export interface Channel {
/**
* Adds a listener for incoming contexts of the specified context type whenever a broadcast happens on this channel.
*/
addContextListener(contextType: string | null, handler: ContextHandler): Listener;
addContextListener(
contextType: string | null,
handler: ContextHandler
): Listener;
}
5 changes: 4 additions & 1 deletion src/api/DesktopAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ export interface DesktopAgent {
/**
* Adds a listener for the broadcast of a specific type of context object.
*/
addContextListener(contextType: string | null, handler: ContextHandler): Listener;
addContextListener(
contextType: string | null,
handler: ContextHandler
): Listener;

/**
* Retrieves a list of the System channels available for the app to join
Expand Down

0 comments on commit 470f368

Please sign in to comment.