wot-typescript-definitions
Advanced tools
Comparing version
@@ -196,3 +196,7 @@ export as namespace WoT; | ||
/** A function called with an Event object when an event is emitted. */ | ||
export declare type RequestHandler = (request: Request) => any; | ||
// export declare type RequestHandler = (request: Request) => any; | ||
export interface RequestHandler { | ||
request: Request; | ||
callback: (param?: any) => any; | ||
} | ||
@@ -199,0 +203,0 @@ /** Represents an incoming request the ExposedThing is supposed to handle, for instance retrieving and updating properties, invoking Actions and observing Events (WoT interactions). */ |
{ | ||
"name": "wot-typescript-definitions", | ||
"version": "0.3.0-SNAPSHOT.4", | ||
"version": "0.3.0-SNAPSHOT.5", | ||
"description": "Typescript definitions for the WoT scripting API", | ||
@@ -5,0 +5,0 @@ "main": "index.d.ts", |
18992
0.53%294
1.38%