-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TypeScript Definitions #194
base: master
Are you sure you want to change the base?
Conversation
index.d.ts
Outdated
base?: string; | ||
intermediatePath?: string; | ||
strictSSL?: boolean; | ||
request: Function; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be request?: Function;
/// <reference types="request" /> | ||
/// <reference types="node" /> | ||
|
||
import * as request from 'request'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not going to argue this one, but it extends request-promise
which I don't think has types anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From request
I use only request.CoreOptions
and request.RequestResponse
: here
And these types are the same for request
and request-promise
packages
Any chance we can get these merged in? Would be nice to have |
While we are waiting for this pull request to be accepted, is it possible to get these types published to the definitely typed repo? |
@zlepper, that's a good idea. I'll do it this week. |
Any update on this, @kopte3 ? |
I've created a PR on definitely typed for this 👍 |
Fixed issue #174