Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ostapenko-me
Copy link
Contributor

Fixed issue #174

index.d.ts Outdated
base?: string;
intermediatePath?: string;
strictSSL?: boolean;
request: Function;
Copy link

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';
Copy link

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

Copy link
Contributor Author

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

@crhistianramirez
Copy link

Any chance we can get these merged in? Would be nice to have

@zlepper
Copy link

zlepper commented Jan 7, 2018

While we are waiting for this pull request to be accepted, is it possible to get these types published to the definitely typed repo?

@ostapenko-me
Copy link
Contributor Author

@zlepper, that's a good idea. I'll do it this week.

@delete
Copy link

delete commented Apr 17, 2018

Any update on this, @kopte3 ?

@orta
Copy link

orta commented Jul 16, 2018

I've created a PR on definitely typed for this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants