wot-typescript-definitions
Advanced tools
Comparing version
declare namespace WoT { | ||
/** | ||
* Starts the discovery process that will provide ConsumedThing | ||
* | ||
* @param filter represents the constraints for discovering Things as key-value pairs | ||
*/ | ||
export function discover(filter?: ThingFilter): ThingDiscovery; | ||
/** | ||
* Accepts a ThingDescription and returns a ConsumedThing | ||
* @param td thing description | ||
*/ | ||
export function consume(td: ThingDescription): Promise<ConsumedThing>; | ||
export interface WoT { | ||
/** | ||
* Starts the discovery process that will provide ConsumedThing | ||
* | ||
* @param filter represents the constraints for discovering Things as key-value pairs | ||
*/ | ||
// export function | ||
discover(filter?: ThingFilter): ThingDiscovery; | ||
/** | ||
* Accepts a ThingDescription and returns a ExposedThing | ||
* | ||
* @param td thing description | ||
*/ | ||
export function produce(td: ThingDescription): Promise<ExposedThing>; | ||
/** | ||
* Accepts a ThingDescription and returns a ConsumedThing | ||
* @param td thing description | ||
*/ | ||
// export function | ||
consume(td: ThingDescription): Promise<ConsumedThing>; | ||
/** | ||
* Accepts a ThingDescription and returns a ExposedThing | ||
* | ||
* @param td thing description | ||
*/ | ||
// export function | ||
produce(td: ThingDescription): Promise<ExposedThing>; | ||
} | ||
/** | ||
@@ -23,0 +30,0 @@ * Dictionary that represents the constraints for discovering Things as key-value pairs. |
{ | ||
"name": "wot-typescript-definitions", | ||
"version": "0.8.0-SNAPSHOT.5", | ||
"version": "0.8.0-SNAPSHOT.6", | ||
"description": "TypeScript definitions for the W3C WoT Scripting API", | ||
@@ -5,0 +5,0 @@ "author": "W3C Web of Things Working Group", |
14494
0.97%277
1.84%