mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
cheerio is intended to be used as below:
```javascript
var cheerio = require('cheerio'),
$ = cheerio.load('<h2 class="title">Hello world</h2>');
```
So we should use `import * as cheerio from "cheerio"` in TypeScript.
However, `cheerio` was defined with `export default` in cheerio.d.ts.
|
||
|---|---|---|
| .. | ||
| cheerio-tests.ts | ||
| cheerio.d.ts | ||