Skip to content

Commit

Permalink
fix: Add method overload to VoiceResponse.prototype.play (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
DCtheTall authored Mar 13, 2020
1 parent 747a091 commit 465d158
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/typescript/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,4 @@ promiseMessage.then(messages => {

const twiml = new twilio.twiml.VoiceResponse();
twiml.dial({}, '+12345678901');
twiml.play('https://demo.twilio.com/docs/classic.mp3');
6 changes: 6 additions & 0 deletions lib/twiml/VoiceResponse.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ declare class VoiceResponse {
* @param url - Media URL
*/
play(attributes?: VoiceResponse.PlayAttributes, url?: string): void;
/**
* <Play> TwiML Verb
*
* @param url - Media URL
*/
play(url?: string): void;
/**
* <Prompt> Twiml Verb
*
Expand Down

0 comments on commit 465d158

Please sign in to comment.