Skip to content

Commit

Permalink
fix: typescript types (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatdutchguy authored Jul 7, 2020
1 parent fc7a459 commit a3b9638
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions types/openzwave-shared.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@ declare module "openzwave-shared" {
NodeFailed = 10,
}

export enum ControllerError {
None = 0,
ButtonNotFound = 1, /* Button */
NodeNotFound = 2, /* Button */
NotBridge = 3, /* Button */
NotSUC = 4, /* CreateNewPrimary */
NotSecondary = 5, /* CreateNewPrimary */
NotPrimary = 6, /* RemoveFailedNode, AddNodeToNetwork */
IsPrimary = 7, /* ReceiveConfiguration */
NotFound = 8, /* RemoveFailedNode */
Busy = 9, /* RemoveFailedNode, RequestNetworkUpdate */
Failed = 10, /* RemoveFailedNode, RequestNetworkUpdate */
Disabled = 11, /* RequestNetworkUpdate error */
Overflow = 12, /* RequestNetworkUpdate error */
}
export enum ControllerError {
None = 0,
ButtonNotFound = 1, /* Button */
NodeNotFound = 2, /* Button */
NotBridge = 3, /* Button */
NotSUC = 4, /* CreateNewPrimary */
NotSecondary = 5, /* CreateNewPrimary */
NotPrimary = 6, /* RemoveFailedNode, AddNodeToNetwork */
IsPrimary = 7, /* ReceiveConfiguration */
NotFound = 8, /* RemoveFailedNode */
Busy = 9, /* RemoveFailedNode, RequestNetworkUpdate */
Failed = 10, /* RemoveFailedNode, RequestNetworkUpdate */
Disabled = 11, /* RequestNetworkUpdate error */
Overflow = 12, /* RequestNetworkUpdate error */
}

export enum LogLevel {
NoLogging = 0,
Expand Down Expand Up @@ -429,6 +429,11 @@ declare module "openzwave-shared" {
*/
getLibraryVersion(): string;

/**
* Get the version of OpenZWave.
*/
getOzwVersion(): String;

/**
* Get a string containing the Z-Wave API library type used by a controller.
*
Expand Down

0 comments on commit a3b9638

Please sign in to comment.