🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

wot-typescript-definitions

Package Overview
Dependencies
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wot-typescript-definitions - npm Package Compare versions

Comparing version

to
0.8.0-SNAPSHOT.6

41

index.d.ts
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",