alexa-remote icon indicating copy to clipboard operation
alexa-remote copied to clipboard

Names is returning Serial and not string

Open beothorn opened this issue 1 year ago • 0 comments

When using typescript definitions, apparently names returns Serial. Currently, a cast needs to be done:

const device: Serial = alexa.names["SomeDeviceName"] as unknown as Serial;
const serial = device.serialNumber;
alexa.sendSequenceCommand(serial, 'speak', data.text);

beothorn avatar Jul 14 '24 11:07 beothorn