wot-typescript-definitions
Advanced tools
Comparing version
@@ -62,7 +62,7 @@ export as namespace WoT; | ||
/** The name attribute represents the user given name of the Thing */ | ||
name: string; // DOMString | ||
name?: string; // DOMString | ||
/** The url attribute represents the address of the Thing */ | ||
url: USVString; | ||
url?: USVString; | ||
/** The description attribute represents the Thing Description of the Thing */ | ||
description: object; // Dictionary | ||
description?: object; // Dictionary | ||
} | ||
@@ -229,11 +229,14 @@ | ||
export declare type PropertyHandler = (newValue: any, oldValue: any) => void; | ||
/** Represents the Thing Property description. */ | ||
export interface ThingPropertyInit { | ||
name: string | ||
configurable: boolean; // = false; | ||
enumerable: boolean; // = true; | ||
writable: boolean; // = true; | ||
configurable?: boolean; // = false; | ||
enumerable?: boolean; // = true; | ||
writable?: boolean; // = true; | ||
// observable: boolean; // = false; | ||
semanticTypes: [SemanticType]; | ||
semanticTypes?: [SemanticType]; | ||
description: ThingDescription; | ||
onWrite?: PropertyHandler; | ||
value: any; | ||
@@ -247,7 +250,7 @@ } | ||
/** The inputDataDescription attribute provides the description of the input arguments. */ | ||
inputDataDescription: ThingDescription; | ||
inputDataDescription?: ThingDescription; | ||
/** The outputDataDescription attribute provides the description of the returned data. */ | ||
outputDataDescription: ThingDescription; | ||
outputDataDescription?: ThingDescription; | ||
/** The semanticTypes attribute provides a list of semantic type annotations (e.g. labels, classifications etc) relevant to the Action, represented as SemanticType dictionaries. */ | ||
semanticTypes: [SemanticType]; | ||
semanticTypes?: [SemanticType]; | ||
/** The action attribute provides a function that defines the Action. */ | ||
@@ -261,5 +264,5 @@ action: Function; | ||
/** The semanticTypes attribute represent a list of semantic type annotations attached to the event. */ | ||
semanticTypes: [SemanticType]; | ||
semanticTypes?: [SemanticType]; | ||
/** The dataDescription attribute represents the description of the data that is attached to the event. */ | ||
dataDescription: ThingDescription; | ||
dataDescription?: ThingDescription; | ||
} | ||
@@ -266,0 +269,0 @@ |
{ | ||
"name": "wot-typescript-definitions", | ||
"version": "0.3.0-SNAPSHOT.6", | ||
"version": "0.3.0-SNAPSHOT.7", | ||
"description": "Typescript definitions for the WoT scripting API", | ||
@@ -5,0 +5,0 @@ "main": "index.d.ts", |
19227
0.65%297
0.68%