How to use the postman-collection.Description function in postman-collection

To help you get started, we’ve selected a few postman-collection examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / postman-collection / postman-collection-tests.ts View on Github external
pmCollection.CookieList.isCookieList(cookieList); // $ExpectType boolean

// DescriptionDefinition Tests

const descDef: pmCollection.DescriptionDefinition = {
    content: "string",
    type: "string"
};
descDef.content; // $ExpectType string
descDef.type; // $ExpectType string | undefined

// Description Tests

let desc = new pmCollection.Description();
desc = new pmCollection.Description("string");
desc = new pmCollection.Description(descDef);

desc.content; // $ExpectType string
desc.type; // $ExpectType string

desc.toJSON(); // $ExpectType DescriptionDefinition
desc.toString(); // $ExpectType string
desc.update("string"); // $ExpectType void
desc.update("string", "string"); // $ExpectType void
desc.update(descDef); // $ExpectType void

pmCollection.Description.isDescription(desc); // $ExpectType boolean

// EventDefinition Tests

const eventDesc: pmCollection.EventDefinition = {
github DefinitelyTyped / DefinitelyTyped / types / postman-collection / postman-collection-tests.ts View on Github external
pmCollection.CookieList.isCookieList(cookieList); // $ExpectType boolean

// DescriptionDefinition Tests

const descDef: pmCollection.DescriptionDefinition = {
    content: "string",
    type: "string"
};
descDef.content; // $ExpectType string
descDef.type; // $ExpectType string | undefined

// Description Tests

let desc = new pmCollection.Description();
desc = new pmCollection.Description("string");
desc = new pmCollection.Description(descDef);

desc.content; // $ExpectType string
desc.type; // $ExpectType string

desc.toJSON(); // $ExpectType DescriptionDefinition
desc.toString(); // $ExpectType string
desc.update("string"); // $ExpectType void
desc.update("string", "string"); // $ExpectType void
desc.update(descDef); // $ExpectType void

pmCollection.Description.isDescription(desc); // $ExpectType boolean

// EventDefinition Tests

const eventDesc: pmCollection.EventDefinition = {
    script: "string"
github DefinitelyTyped / DefinitelyTyped / types / postman-collection / postman-collection-tests.ts View on Github external
const cookieList = new pmCollection.CookieList(null, [cookie]);

pmCollection.CookieList.isCookieList(cookieList); // $ExpectType boolean

// DescriptionDefinition Tests

const descDef: pmCollection.DescriptionDefinition = {
    content: "string",
    type: "string"
};
descDef.content; // $ExpectType string
descDef.type; // $ExpectType string | undefined

// Description Tests

let desc = new pmCollection.Description();
desc = new pmCollection.Description("string");
desc = new pmCollection.Description(descDef);

desc.content; // $ExpectType string
desc.type; // $ExpectType string

desc.toJSON(); // $ExpectType DescriptionDefinition
desc.toString(); // $ExpectType string
desc.update("string"); // $ExpectType void
desc.update("string", "string"); // $ExpectType void
desc.update(descDef); // $ExpectType void

pmCollection.Description.isDescription(desc); // $ExpectType boolean

// EventDefinition Tests