dialogflow / dialogflow-nodejs-client

Node.js SDK for Dialogflow
Apache License 2.0
659 stars 287 forks source link

Typings error #96

Open borislemke opened 6 years ago

borislemke commented 6 years ago

I tried to create a very basic app (following the example on this repo's README) but got this error when compiling:

TSError: ⨯ Unable to compile TypeScript
src/index.ts (9,9): Property 'on' does not exist on type 'TextRequest'. (2339)
src/index.ts (13,9): Property 'on' does not exist on type 'TextRequest'. (2339)

where line 9 and 13 refer to

request.on('response', function(response) { // 9
    console.log(response)
})

request.on('error', function(error) { // 13
    console.log(error)
})