Closed rmzg closed 9 months ago
1 import { gotScraping } from "got-scraping"; 2 3 async function main() { 4 let x = gotScraping("https://www.example.com"); 5 >> console.log(x.then); Property 'then' does not exist on type 'CancelableRequest<Response<string>>'. 7 } 8 9 main();
Adding the following seems to help:
3 declare module "got-scraping" { 4 interface CancelableRequest<T> extends Promise<T> {} 5 }