dajk / hltv-api

DEPRECATED: An unofficial JSON api for popular CS:GO website hltv.org. Check available methods on https://hltv-api.vercel.app/
http://npm.im/hltv-api
MIT License
277 stars 59 forks source link

import from esm module #72

Open AuroraDysis opened 2 years ago

AuroraDysis commented 2 years ago

I'm not sure what the exact reason is, but when importing from the ESM module, the type deduction is completely wrong. I have to use the following code to import the package.

import hltv from "hltv-api";
const HLTV = (hltv as any).default;