mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-18 12:08:59 +08:00
.html() can return null when querying an element that does not exist.
Repro:
const response = await axios.default.get('https://www.google.com/')
const $ = cheerio.load(response.data)
const foo = $('.bar').html()
console.log(`foo is: ${foo}`) //foo is: null