From 37dd9285e9b7a084c694c8b555d29246615c31ef Mon Sep 17 00:00:00 2001 From: Vincenzo Chianese Date: Mon, 30 Mar 2020 20:19:10 -0500 Subject: [PATCH] =?UTF-8?q?Postman=20Collection=20=E2=80=94=20responses=20?= =?UTF-8?q?is=20singular=20(#43231)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update index.d.ts * Update postman-collection-tests.ts * Update index.d.ts --- types/postman-collection/index.d.ts | 4 ++-- types/postman-collection/postman-collection-tests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/postman-collection/index.d.ts b/types/postman-collection/index.d.ts index 5fa34dba45..950bfe3bdb 100644 --- a/types/postman-collection/index.d.ts +++ b/types/postman-collection/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for postman-collection 3.5 // Project: https://github.com/postmanlabs/postman-collection -// Definitions by: Kyle Buzby +// Definitions by: Kyle Buzby , Vincenzo Chianese // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 /// @@ -359,7 +359,7 @@ export class HeaderList extends PropertyList
{ export interface ItemDefinition extends PropertyDefinition { request?: RequestDefinition; - responses?: ResponseDefinition[]; + response?: ResponseDefinition[]; events?: EventDefinition[]; } diff --git a/types/postman-collection/postman-collection-tests.ts b/types/postman-collection/postman-collection-tests.ts index 634325e528..870af15290 100644 --- a/types/postman-collection/postman-collection-tests.ts +++ b/types/postman-collection/postman-collection-tests.ts @@ -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