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

Commit

Permalink
switch to the slightly different (on type&name) RequestHandler compar…
Browse files Browse the repository at this point in the history
…ed to FPWD
  • Loading branch information
danielpeintner committed Nov 5, 2017
1 parent 32a35db commit 47d34b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ export declare enum RequestType {
export declare type ThingDescription = USVString;

/** A function called with an Event object when an event is emitted. */
export declare type RequestHandler = (request: Request) => any;
// export interface RequestHandler {
// request: Request;
// callback: (param?: any) => any;
// }
// export declare type RequestHandler = (request: Request) => any;
export interface RequestHandler {
request: Request;
callback: (param?: any) => any;
}

/** Represents an incoming request the ExposedThing is supposed to handle, for instance retrieving and updating properties, invoking Actions and observing Events (WoT interactions). */
export interface Request {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wot-typescript-definitions",
"version": "0.3.0-SNAPSHOT.7",
"version": "0.3.0-SNAPSHOT.8",
"description": "Typescript definitions for the WoT scripting API",
"main": "index.d.ts",
"types": "index.d.ts",
Expand Down

0 comments on commit 47d34b4

Please sign in to comment.