Skip to content

Commit

Permalink
Align ActionCableProtocol #reset to Protocol's
Browse files Browse the repository at this point in the history
Protocol's reset parameter is typed `ReasonError`, a superset of `Error`,
so ActionCableProtocol should use the same type
  • Loading branch information
cmdoptesc committed Apr 26, 2024
1 parent 60d6885 commit 0e8f9ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/action_cable/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Protocol, Consumer, ProcessedMessage } from '../protocol/index.js'
import { Protocol, Consumer, ProcessedMessage, ReasonError } from '../protocol/index.js'
import { Message } from '../channel/index.js'
import { Logger } from '../logger/index.js'

Expand All @@ -23,5 +23,5 @@ export class ActionCableProtocol implements Protocol {
perform(identifier: string, action: string, payload?: object): Promise<void>
receive(msg: Message): ProcessedMessage | void
recoverableClosure(err: Error): boolean
reset(err: Error): void
reset(err: ReasonError): void
}

0 comments on commit 0e8f9ab

Please sign in to comment.