JLarky/rad-event-listener

can't be used with bluetooth api

samualtnorman opened this issue · 2 comments

BluetoothRemoteGATTCharacteristic has an event type of "characteristicvaluechanged" whereas this library only looks for event types that begin with "on".

This means typescript tells me Argument of type '() => void' is not assignable to parameter of type 'never'.ts(2345)

This would also apply to any EventTarget object that has an event type that doesn't begin with "on".

oh wait hang on I'm wrong, I don't know why I'm getting that type errpr

okay never mind, my types for BluetoothRemoteGATTCharacteristic were wrong