mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
96916f1710
commit
fa79a91a19
4
types/noble/index.d.ts
vendored
4
types/noble/index.d.ts
vendored
@ -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[];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user