Skip to content

Commit 76fc62a

Browse files
Merge pull request #297 from danielpeintner/issue-296-ts
make TS definitions for DataSchemaValue more accurate
2 parents 463b309 + 3aa1ff8 commit 76fc62a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

typescript/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ declare namespace WoT {
7777
export type ThingDescription = { [key: string]: any; };
7878

7979

80-
export type DataSchemaValue = any;
80+
export type DataSchemaValue = (null | boolean | number | string | object | DataSchemaValue[]);
8181
export type InteractionInput = (ReadableStream | DataSchemaValue);
8282

8383
export interface InteractionOutput {

typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wot-typescript-definitions",
3-
"version": "0.8.0-SNAPSHOT.10",
3+
"version": "0.8.0-SNAPSHOT.11",
44
"description": "TypeScript definitions for the W3C WoT Scripting API",
55
"author": "W3C Web of Things Working Group",
66
"license": "W3C-20150513",

0 commit comments

Comments
 (0)