Skip to content

Commit

Permalink
refactor(preload): deprecated IpcRenderer removeListener API
Browse files Browse the repository at this point in the history
  • Loading branch information
alex8088 committed Jun 4, 2023
1 parent 5b939ee commit 0dbd764
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/preload/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export interface IpcRenderer {
/**
* Removes the specified `listener` from the listener array for the specified
* `channel`.
*
* @deprecated Use `on` listen return instead
*
*/
removeListener(channel: string, listener: (...args: any[]) => void): this
/**
Expand Down

0 comments on commit 0dbd764

Please sign in to comment.