wot-typescript-definitions
Advanced tools
Comparing version
@@ -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", |
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
0
-100%14837
-0.05%241
-0.41%