dijs / wiki

Wikipedia Interface for Node.js
MIT License
313 stars 62 forks source link

Implement Headers type in TypeScript definition #131

Closed wSedlacek closed 3 years ago

wSedlacek commented 4 years ago

Usage of headers was documented in the readme but not included in the TypeScript definitions. This fixes that.

As a work around I added this locally to my project for testing.

declare module 'wikijs' {
  /**
   * The Headers sent to be sent along with the request
   *
   * @type {HeadersInit}
   * @memberof Options
   */
  interface Options {
    headers: HeadersInit;
  }
}
coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 89.56% when pulling 9c581540164705319c65192086545c89710a197c on wSedlacek:patch-1 into 94188a0b2c251e1bd4f4d4e48f778d3957d7830e on dijs:master.