Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Refined types
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Johansson committed Nov 20, 2019
1 parent 9dda70d commit 9792ff7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Url } from 'url';
import { URL } from 'url';
import http = require('http');
import https = require('https');
import Promise = require('bluebird');
Expand All @@ -20,7 +20,7 @@ declare namespace cloudscraper {

url: string; // <- deprecated
siteKey: string;
uri: Url;
uri: URL;
form: {
[key: string]: string;
// Secret form value
Expand Down Expand Up @@ -77,7 +77,7 @@ declare namespace cloudscraper {

interface CloudscraperAPI extends request.RequestAPI<Cloudscraper, CoreOptions, request.RequiredUriUrl> {
defaultParams: DefaultOptions;
(options: Options): Promise<string>;
(options: OptionsWithUrl): Promise<any>;
}

type OptionsWithUri = request.UriOptions & CoreOptions;
Expand Down

0 comments on commit 9792ff7

Please sign in to comment.