Definitelytyped: [@types/got] outdated typescript definitions

Created on 15 Oct 2018  路  4Comments  路  Source: DefinitelyTyped/DefinitelyTyped

  • [x] I tried using the @types/got package and had problems.
  • [x] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript v3.0.1
  • [ ] I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
  • [ ] [Mention](https://github.com/blog/821-mention-somebody-they-re-notified) the authors (see Definitions by: in index.d.ts) so they can respond.

    • Authors: @BendingBender @LinusU @ikokostya

I am trying to integrate got > v9.. in a project using typescript.
Only the typings only support version 8.3.3.

Missing:

  • mergeOptions method signature
  • GotOptions that include https.RequestOptions including the tls.SecureContextOptions

Most helpful comment

got.extend() is missing.
I use "@types/got": "^9.2.1" and "got": "^9.3.2", but got.extend() has already been added in 9.0.0.

All 4 comments

Any update on this one?

@jkomyno Hi, types definition for got 9.x was introduces in this pull request https://github.com/DefinitelyTyped/DefinitelyTyped/pull/29710

You can try new version installing @types/got@9 npm package.

Hi @ikokostya, I'll try in the following hours, thanks!

got.extend() is missing.
I use "@types/got": "^9.2.1" and "got": "^9.3.2", but got.extend() has already been added in 9.0.0.

Was this page helpful?
0 / 5 - 0 ratings