change tuple to Array

[{uuid: string; data: Buffer}] is a tuple definition, resulting in an array of fixed length. Because there can be multiple serviceData attached to any given noble Peripheral.Advertisement, this serviceData should be given a type definition using Array<>.
This commit is contained in:
Clayton Kucera 2019-02-09 18:44:41 -05:00
parent 96916f1710
commit fa79a91a19

View File

@ -66,10 +66,10 @@ export declare class Peripheral extends events.EventEmitter {
export interface Advertisement {
localName: string;
serviceData: [{
serviceData: Array<{
uuid: string,
data: Buffer
}];
}>;
txPowerLevel: number;
manufacturerData: Buffer;
serviceUuids: string[];