Closed sawa-ko closed 3 years ago
Looks like node-fetch bundles typings now so @types/typescript doesn't have any types anymore
I'll update node-fetch and update the package, but if you need the fix now (or can't update booru) you can install the older (working) types package npm i --save-dev @types/node-fetch@2.5.12
nevermind node-fetch changed to be ESM-only and that broke jest and some of my other tooling (see this issue)
i've published booru@2.4.2
with dependency updates, but you'll have to pin @types/node-fetch@2.5.12
yourself, if npm fails to install the right version
i'll likely move away from node-fetch in a later version if they don't add a non-ESM version, as moving to ESM might break a lot of things really badly for me
1 import { RequestInit } from 'node-fetch';