wot-typescript-definitions
Advanced tools
Comparing version
@@ -210,5 +210,15 @@ import { Observable } from 'rxjs/Observable'; | ||
invokeAction(actionName: string, parameter?: any): Promise<any>; | ||
observeProperty(name: string, listener: WotListener): Promise<void>; | ||
unobserveProperty(name: string): Promise<void>; | ||
subscribeEvent(name: string, listener: WotListener): Promise<void>; | ||
unsubscribeEvent(name: string): Promise<void>; | ||
// XXX add more | ||
// e.g., readonly attribute ThingInstance instance; | ||
} | ||
export declare type WotListener = (data: any) => void; | ||
/** | ||
@@ -215,0 +225,0 @@ * The Interaction interface is an abstract class to represent Thing interactions: Properties, Actions and Events. |
{ | ||
"name": "wot-typescript-definitions", | ||
"version": "0.7.0-NEXT-SNAPSHOT.5", | ||
"version": "0.7.0-NEXT-SNAPSHOT.6", | ||
"description": "TypeScript definitions for the W3C WoT Scripting API", | ||
@@ -5,0 +5,0 @@ "author": "W3C Web of Things Working Group", |
20202
1.88%436
1.4%