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

Commit

Permalink
Merge pull request #284 from filipjohansson/master
Browse files Browse the repository at this point in the history
Fix for error with type for CloudscraperAPI
  • Loading branch information
codemanki authored Nov 24, 2019
2 parents f61ad17 + 9792ff7 commit f7dfa70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 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,6 +77,7 @@ declare namespace cloudscraper {

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

type OptionsWithUri = request.UriOptions & CoreOptions;
Expand Down

0 comments on commit f7dfa70

Please sign in to comment.