pm-coll-exts.d.ts 726 B

12345678910111213141516171819202122232425
  1. import "postman-collection"
  2. /*
  3. There are some small mismatches in some types that the 'postman-collection'
  4. package provides (come on guys ;) ). These type definitions append extra
  5. information which is present in the runtime values of the types
  6. */
  7. type PMRawLanguage = "text" | "javascript" | "json" | "html" | "xml"
  8. declare module "postman-collection" {
  9. interface RequestBody {
  10. // Options is not well-defined by the schema, so we are treating everything as optional for runtime safety.
  11. // See: https://schema.postman.com/collection/json/v2.1.0/draft-04/collection.json
  12. options?: {
  13. raw?: {
  14. language?: PMRawLanguage
  15. }
  16. }
  17. }
  18. interface FormParam {
  19. type: "file" | "text"
  20. }
  21. }