From 47d34b4bc4132ebc344eeb844348f66c1a6cc85c Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Sun, 5 Nov 2017 19:59:14 +0100 Subject: [PATCH] switch to the slightly different (on type&name) RequestHandler compared to FPWD --- index.d.ts | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.d.ts b/index.d.ts index a99828c..31f0d60 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 { diff --git a/package.json b/package.json index 8c4d10e..db205a4 100644 --- a/package.json +++ b/package.json @@ -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",