Skip to content

Commit 0374c65

Browse files
committed
feat(typescript): add constructor to ConsumedThing interface
1 parent 119c2a0 commit 0374c65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

typescript/scripting-api/index.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ declare namespace WoT {
105105
* The ConsumedThing interface instance represents a client API to operate a Thing.
106106
*/
107107
export interface ConsumedThing {
108+
/**
109+
* Instantiates a new ConsumedThing from a {@link ThingDescription}.
110+
*/
111+
new(td: ThingDescription);
108112
/**
109113
* Reads a Property value.
110114
* Takes as arguments propertyName and optionally options.

0 commit comments

Comments
 (0)