Skip to content

Commit

Permalink
feat: expand type of data in sendAction method
Browse files Browse the repository at this point in the history
  • Loading branch information
JS-AK committed Feb 8, 2023
1 parent 575866b commit b58797e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/asterisk-ami-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class AsteriskAmiAdapter extends EventEmitter {
return result;
}

#send(data: Types.TAmiMessageIn, callback?: Types.TCallBack) {
#send(data: Types.TAmiMessageIn & Types.TAmiMessageToSocket, callback?: Types.TCallBack) {
if (!data.ActionID) data.ActionID = this.#getFormatedUuid();

const actionID = data.ActionID;
Expand Down Expand Up @@ -324,7 +324,7 @@ export class AsteriskAmiAdapter extends EventEmitter {

getProcessData = this.#processData;

sendAction(data: Types.TAmiMessageIn, callback: Types.TCallBack) {
sendAction(data: Types.TAmiMessageIn & Types.TAmiMessageToSocket, callback: Types.TCallBack) {
if (!this.#isReady) {
return this.#logger.warn("Connection is not established");
}
Expand Down

0 comments on commit b58797e

Please sign in to comment.