mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
state can be typed (#25640)
This commit is contained in:
committed by
Sheetal Nandi
parent
a68f617d89
commit
9028a63234
2
types/noble/index.d.ts
vendored
2
types/noble/index.d.ts
vendored
@@ -42,7 +42,7 @@ export declare class Peripheral extends events.EventEmitter {
|
||||
advertisement: Advertisement;
|
||||
rssi: number;
|
||||
services: Service[];
|
||||
state: string;
|
||||
state: 'error' | 'connecting' | 'connected' | 'disconnecting' | 'disconnected';
|
||||
|
||||
connect(callback?: (error: string) => void): void;
|
||||
disconnect(callback?: () => void): void;
|
||||
|
||||
Reference in New Issue
Block a user