Skip to content

Commit 0302f38

Browse files
fix: add missing TypeScript terms (scopes,response) and fix terms (security) in Form Interface
add required ExpectedResponse interface
1 parent ddddc24 commit 0302f38

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

typescript/index.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,18 @@ export interface Link {
305305
anchor?: string;
306306
}
307307

308+
export interface ExpectedResponse {
309+
contentType?: string;
310+
}
311+
308312
export interface Form {
309313
href: string;
310314
subprotocol?: string;
311315
op?: string | Array<string>;
312316
contentType?: string; // media type + parameter(s), e.g., text/plain;charset=utf8
313-
security?: Security;
317+
security?: Array<string>; // Set of security definition names, chosen from those defined in securityDefinitions // Security;
318+
scopes?: Array<string>;
319+
response?: ExpectedResponse;
314320
}
315321

316322
export declare type MultiLanguage = any; // object?

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.6.0-SNAPSHOT.4",
3+
"version": "0.6.0-SNAPSHOT.5",
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)