Skip to content

Commit d4d028b

Browse files
authored
🤖 Merge PR DefinitelyTyped#72765 [postman-collection] Add "description" types to the collection's "info" object by @nrutman
1 parent ce27969 commit d4d028b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎types/postman-collection/index.d.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ export interface CollectionDefinition extends ItemGroupDefinition {
180180
id?: string | undefined;
181181
name?: string | undefined;
182182
version?: string | undefined;
183+
description?: {
184+
content?: string | undefined;
185+
type?: string | undefined;
186+
version?: string | undefined;
187+
} | undefined;
183188
} | undefined;
184189
variable?: VariableDefinition[] | undefined;
185190
}

‎types/postman-collection/postman-collection-tests.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pmCollection.ItemGroup.isItemGroup(ig); // $ExpectType boolean
153153

154154
// CollectionDefinition Tests
155155
const colDef: pmCollection.CollectionDefinition = {};
156-
colDef.info; // $ExpectType { id?: string | undefined; name?: string | undefined; version?: string | undefined; } | undefined
156+
colDef.info; // $ExpectType { id?: string | undefined; name?: string | undefined; version?: string | undefined; description?: { content?: string | undefined; type?: string | undefined; version?: string | undefined; } | undefined; } | undefined
157157
colDef.variable; // $ExpectType VariableDefinition[] | undefined
158158

159159
let collection: pmCollection.Collection;

0 commit comments

Comments
 (0)