Using,
import { XMLHttpRequest } from 'xmlhttprequest';
On Node I get the following error when I compile with tsc
index.ts|4 col 32 error| 7016[QF available]: Could not find a declaration file for module '
xmlhttprequest
'. '<project>/node_modules/xmlhttprequest/lib/XMLHttpRequest.js
' implicitly has an 'any' type. Trynpm install @types/xmlhttprequest
if it exists or add a new declaration (.d.ts) file containingdeclare module '
xmlhttprequest';
However, that package doesn't seem to be there,
npm install @types/xmlhttprequest
npm ERR! code E404
npm ERR! 404 Not Found: @types/xmlhttprequest@latest
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ecarroll/.npm/_logs/2018-07-31T00_19_20_299Z-debug.log
Is there a way anything that packages this type?