porsager / busylight

node library for busylight
50 stars 17 forks source link

Typescript: interface Busylight should extend EventEmitter #21

Closed 0xR closed 2 years ago

0xR commented 4 years ago

Now I get:

error TS2339: Property 'on' does not exist on type 'Busylight'.                                                                                                                         

47 busylight.on('disconnected', (error: Error | undefined) => {
porsager commented 2 years ago

PR Is welcome for typescript support