Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit 47d34b4

Browse files
switch to the slightly different (on type&name) RequestHandler compared to FPWD
1 parent 32a35db commit 47d34b4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ export declare enum RequestType {
193193
export declare type ThingDescription = USVString;
194194

195195
/** A function called with an Event object when an event is emitted. */
196-
export declare type RequestHandler = (request: Request) => any;
197-
// export interface RequestHandler {
198-
// request: Request;
199-
// callback: (param?: any) => any;
200-
// }
196+
// export declare type RequestHandler = (request: Request) => any;
197+
export interface RequestHandler {
198+
request: Request;
199+
callback: (param?: any) => any;
200+
}
201201

202202
/** Represents an incoming request the ExposedThing is supposed to handle, for instance retrieving and updating properties, invoking Actions and observing Events (WoT interactions). */
203203
export interface Request {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wot-typescript-definitions",
3-
"version": "0.3.0-SNAPSHOT.7",
3+
"version": "0.3.0-SNAPSHOT.8",
44
"description": "Typescript definitions for the WoT scripting API",
55
"main": "index.d.ts",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)