🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

wot-typescript-definitions

Package Overview
Dependencies
Maintainers
3
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wot-typescript-definitions - npm Package Compare versions

Comparing version

to
0.4.0-SNAPSHOT.6

14

index.d.ts

@@ -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",