Skip to content

Commit 04c79c1

Browse files
committed
Generate types for script.packages
1 parent fee1f53 commit 04c79c1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

types/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2146,6 +2146,13 @@ declare module "postman-collection" {
21462146
static createFromNode(response: any, cookies: any): any;
21472147
}
21482148

2149+
/**
2150+
* A map of package names to the IDs of the packages
2151+
*/
2152+
export type Packages = {
2153+
[key: string]: { id: string; };
2154+
};
2155+
21492156
/**
21502157
* Postman scripts that are executed upon events on a collection / request such as test and pre request.
21512158
* @param options - -
@@ -2162,13 +2169,19 @@ declare module "postman-collection" {
21622169
* @param [options.type] - Script type
21632170
* @param [options.src] - Script source url
21642171
* @param [options.exec] - Script to execute
2172+
* @param [options.packages] - Packages required by the script
21652173
*/
21662174
update(options?: {
21672175
type?: string;
21682176
src?: string;
21692177
exec?: string[] | string;
2178+
packages?: Packages;
21702179
}): void;
21712180
type: string;
2181+
/**
2182+
* The packages required by the script
2183+
*/
2184+
packages: Packages;
21722185
src: Url;
21732186
exec: string[];
21742187
/**

0 commit comments

Comments
 (0)