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

Fix for error with type for CloudscraperAPI #284

Merged
merged 2 commits into from
Nov 24, 2019
Merged

Fix for error with type for CloudscraperAPI #284

merged 2 commits into from
Nov 24, 2019

Conversation

filipjohansson
Copy link

I am running version 4.3.0 with the new TypeScript types and I get an error when running await cloudscraper(requestOptions);.

TSError: ⨯ Unable to compile TypeScript:
file.ts(221,16): error TS2349: This expression is not callable.
  Type 'CloudscraperAPI' has no call signatures.

I have tried to fix it with this pull request. It works on my machine. I was trying to run the tests but they were broken before I made my fix.

@TravisBuddy
Copy link

TravisBuddy commented Nov 19, 2019

Hey @filipjohansson,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 91d141e0-0b79-11ea-9cd6-8f216fa7db85

@codemanki
Copy link
Owner

Thanks!

@codemanki codemanki merged commit f7dfa70 into codemanki:master Nov 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants