Postman Collection — responses is singular (#43231)

* Update index.d.ts

* Update postman-collection-tests.ts

* Update index.d.ts
This commit is contained in:
Vincenzo Chianese 2020-03-30 20:19:10 -05:00 committed by GitHub
parent f39f2c9319
commit 37dd9285e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// Type definitions for postman-collection 3.5
// Project: https://github.com/postmanlabs/postman-collection
// Definitions by: Kyle Buzby <https://github.com/kbuzby>
// Definitions by: Kyle Buzby <https://github.com/kbuzby>, Vincenzo Chianese <https://github.com/XVincentX>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
/// <reference types="node" />
@ -359,7 +359,7 @@ export class HeaderList extends PropertyList<Header> {
export interface ItemDefinition extends PropertyDefinition {
request?: RequestDefinition;
responses?: ResponseDefinition[];
response?: ResponseDefinition[];
events?: EventDefinition[];
}

View File

@ -339,7 +339,7 @@ pmCollection.HeaderList.isHeaderList(headerList); // $ExpectType boolean
const itemDef: pmCollection.ItemDefinition = {};
itemDef.request; // $ExpectType RequestDefinition | undefined
itemDef.responses; // $ExpectType ResponseDefinition[] | undefined
itemDef.response; // $ExpectType ResponseDefinition[] | undefined
itemDef.events; // $ExpectType EventDefinition[] | undefined
// Item Tests