mikeal / bent

Functional JS HTTP client (Node.js & Fetch) w/ async await

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TSLint error when importing

crxmail opened this issue · comments

import * as bent from 'bent';

results in error message when compiling

ERROR in [at-loader] ./node_modules/@types/bent/index.d.ts:50:26
TS2304: Cannot find name 'Response'.

installed typescript package is
"@types/bent": "^7.0.1",

Could be fixed by adding the import Response from https

This project doesn’t maintain the type defs so I have no idea what this error is or what to do about it.