MongoClientOptions#compressors has incorrect type

XMLWordPrintableJSON

    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      interface MongoClientOptions in mongodb.d.ts contains property definition as below:

       

      /** Comma-delimited string of compressors to enable network compression for communication between this client and a mongod/mongos instance. */
      compressors?: CompressorName[];

       

      You can already see the issue from the discrepancy between the documentation comment and field type. Documentation is in fact correct here and "compressors" property is a comma delimited string, not as the type suggests an array of strings.

       

            Assignee:
            Daria Pardue
            Reporter:
            Pawel Badenski
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: