mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Postman Collection — responses is singular (#43231)
* Update index.d.ts * Update postman-collection-tests.ts * Update index.d.ts
This commit is contained in:
parent
f39f2c9319
commit
37dd9285e9
4
types/postman-collection/index.d.ts
vendored
4
types/postman-collection/index.d.ts
vendored
@ -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[];
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user