You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

wot-typescript-definitions

Package Overview
Dependencies
Maintainers
4
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.13

28

index.d.ts

@@ -247,30 +247,30 @@ export as namespace WoT;

/**
* Takes a actionName as an optional string argument, and an action argument of type ActionHandler. Sets the handler function for the specified Action matched by actionName if actionName is specified, otherwise sets it for any action. Throws on error. Returns a reference to the same object for supporting chaining.
* Takes a propertyName as string argument, and a readHandler argument of type PropertyReadHandler. Sets the handler function for reading the specified Property matched by propertyName if propertyName is specified, otherwise sets it for reading any property. Throws on error. Returns a reference to the same object for supporting chaining.
*
* @param action
* @param actionName
* @param propertyName
* @param readHandler
*/
setActionHandler(action: ActionHandler, actionName? : string) : ExposedThing;
setPropertyReadHandler(propertyName : string, readHandler: PropertyReadHandler) : ExposedThing;
/**
* Takes a propertyName as an optional string argument, and a readHandler argument of type PropertyReadHandler. Sets the handler function for reading the specified Property matched by propertyName if propertyName is specified, otherwise sets it for reading any property. Throws on error. Returns a reference to the same object for supporting chaining.
* Takes a propertyName as string argument, and a writeHandler argument of type PropertyWriteHandler. Sets the handler function for writing the specified Property matched by propertyName if the propertyName is specified, otherwise sets it for writing any properties. Throws on error. Returns a reference to the same object for supporting chaining.
*
* @param readHandler
* @param propertyName
* @param write
*/
setPropertyReadHandler(readHandler: PropertyReadHandler, propertyName? : string) : ExposedThing;
setPropertyWriteHandler(propertyName : string, writeHandler: PropertyWriteHandler) : ExposedThing;
/**
* Takes a propertyName as an optional string argument, and a writeHandler argument of type PropertyWriteHandler. Sets the handler function for writing the specified Property matched by propertyName if the propertyName is specified, otherwise sets it for writing any properties. Throws on error. Returns a reference to the same object for supporting chaining.
* Takes a actionName as string argument, and an action argument of type ActionHandler. Sets the handler function for the specified Action matched by actionName if actionName is specified, otherwise sets it for any action. Throws on error. Returns a reference to the same object for supporting chaining.
*
* @param write
* @param propertyName
* @param actionName
* @param action
*/
setPropertyWriteHandler(writeHandler: PropertyWriteHandler, propertyName? : string) : ExposedThing;
setActionHandler(actionName : string, action: ActionHandler, ) : ExposedThing;
}
export declare type ActionHandler = (parameters: any) => Promise<any>;
export declare type PropertyReadHandler = () => Promise<any>;
export declare type PropertyWriteHandler = (value: any) => Promise<void>;
export declare type PropertyWriteHandler = (value: any) => Promise<void>;
export declare type ActionHandler = (parameters: any) => Promise<any>;
{
"name": "wot-typescript-definitions",
"version": "0.4.0-SNAPSHOT.12",
"version": "0.4.0-SNAPSHOT.13",
"description": "TypeScript definitions for the W3C WoT Scripting API",

@@ -5,0 +5,0 @@ "author": "the thingweb community",