-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
102 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
declare module 'homey-lib' { | ||
export class HomeyLib { | ||
static getLocales(): unknown; | ||
static getCategories(): unknown; | ||
static getPermissions(): unknown; | ||
static getBrandColor(): unknown; | ||
} | ||
|
||
export class Device { | ||
static getClasses(): Record<string, unknown>; | ||
static getClass(id: string): unknown; | ||
static getCapabilities(): unknown; | ||
} | ||
|
||
export class Capability { | ||
static getCapabilities(): unknown; | ||
static getCapability(id: string): unknown; | ||
static hasCapability(id: string): boolean; | ||
} | ||
|
||
export class Signal { | ||
// Define Signal class methods and properties if available | ||
} | ||
|
||
export class Media { | ||
static getCodecs(): unknown; | ||
} | ||
|
||
export class Energy { | ||
static getCurrencies(): unknown; | ||
static getBatteries(): unknown; | ||
} | ||
|
||
export function getDeviceClasses(): Record<string, unknown>; | ||
export function getDeviceClass(id: string): unknown; | ||
|
||
export function getCapabilities(): unknown; | ||
export function getCapability(id: string): unknown; | ||
export function hasCapability(id: string): boolean; | ||
|
||
export function getAppLocales(): unknown; | ||
export function getAppCategories(): unknown; | ||
export function getAppPermissions(): unknown; | ||
export function getAppBrandColor(): unknown; | ||
|
||
export function getMediaCodecs(): unknown; | ||
|
||
export function getCurrencies(): unknown; | ||
export function getBatteries(): unknown; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
}, | ||
"dependencies": { | ||
"homey-api": "^3.6.2", | ||
"homey-lib": "^2.32.5", | ||
"homey-log": "^2.1.0" | ||
} | ||
} |