wot-typescript-definitions
Advanced tools
Comparing version
@@ -68,3 +68,3 @@ export as namespace WoT; | ||
/** The name attribute represents the user given name of the Thing */ | ||
name?: string; | ||
name: string; | ||
/** additional @types to "Thing" */ | ||
@@ -110,3 +110,3 @@ semanticTypes?: SemanticType[]; | ||
*/ | ||
writeProperty(propertyName: string, newValue: any): Promise<any> | ||
writeProperty(propertyName: string, newValue: any): Promise<void> | ||
@@ -118,5 +118,11 @@ /** Takes the Action name from the name argument and the list of parameters, then requests from the underlying platform and the Protocol Bindings to invoke the Action on the remote Thing and return the result. Returns a Promise that resolves with the return value or rejects with an Error. | ||
invokeAction(actionName: string, parameter?: any): Promise<any> | ||
/** Observable for subscribing to events */ | ||
onEvent(name: string): Observable<any>; | ||
/** Returns an Observable for the Property or Action specified in the name argument, allowing subscribing and unsubscribing to notifications. The requestType specifies whether a Property, an Event or an Action is observed. */ | ||
getObservable(name: string): Observable<any>; | ||
/** Observable for subscribing to property changes */ | ||
onPropertyChange(name: string): Observable<any>; | ||
/** Observable for subscribing to TD changes */ | ||
onTDChange(name: string): Observable<any>; | ||
} | ||
@@ -123,0 +129,0 @@ |
{ | ||
"name": "wot-typescript-definitions", | ||
"version": "0.4.0-SNAPSHOT.5", | ||
"version": "0.4.0-SNAPSHOT.6", | ||
"description": "Typescript definitions for the WoT scripting API", | ||
@@ -5,0 +5,0 @@ "main": "index.d.ts", |
12613
0.27%211
1.93%