Skip to content

Commit

Permalink
update type
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Oct 22, 2024
1 parent 57a8466 commit 0fd54b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/types/bledevicestatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ export interface switchbot {
wait: (arg0: number) => any
}

export interface ad {
id: string
address: string
rssi: number
serviceData: botServiceData | colorBulbServiceData | contactSensorServiceData | curtainServiceData | curtain3ServiceData | stripLightServiceData | lockServiceData | lockProServiceData | meterServiceData | meterPlusServiceData | meterProServiceData | motionSensorServiceData | outdoorMeterServiceData | plugMiniUSServiceData | plugMiniJPServiceData | blindTiltServiceData | ceilingLightServiceData | ceilingLightProServiceData | hub2ServiceData | batteryCirculatorFanServiceData | waterLeakDetectorServiceData | humidifierServiceData | robotVacuumCleanerServiceData
}

interface serviceData {
model: SwitchBotBLEModel
modelName: SwitchBotBLEModelName
Expand Down
4 changes: 2 additions & 2 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { batteryCirculatorFanServiceData, blindTiltServiceData, botServiceD
export type MacAddress = string

export type ondiscover = (device: SwitchbotDevice) => Promise<void> | void
export type onadvertisement = (ad: Ad) => Promise<void> | void
export type onadvertisement = (ad: ad) => Promise<void> | void

interface DeviceInfo {
Model: SwitchBotModel
Expand Down Expand Up @@ -190,7 +190,7 @@ export interface ServiceData {
[key: string]: unknown
}

export interface Ad {
export interface ad {
id: string
address: string
rssi: number
Expand Down

0 comments on commit 0fd54b0

Please sign in to comment.