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

Commit 4e8cf98

Browse files
change RequestHandler as defined in FPWD
1 parent d9e1e38 commit 4e8cf98

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.d.ts

Lines changed: 6 additions & 6 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 {
@@ -231,7 +231,7 @@ export interface ThingPropertyInit {
231231
configurable: boolean; // = false;
232232
enumerable: boolean; // = true;
233233
writable: boolean; // = true;
234-
observable: boolean; // = false;
234+
// observable: boolean; // = false;
235235
semanticTypes: [SemanticType];
236236
description: ThingDescription;
237237
value: any;

0 commit comments

Comments
 (0)