DefinitelyTyped/types/cheerio
isMeCoder 5bca979247
.html() can return null
.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
2017-10-30 10:11:20 -07:00
..
cheerio-tests.ts
index.d.ts .html() can return null 2017-10-30 10:11:20 -07:00
tsconfig.json
tslint.json Ensure every package has a tslint.json (#21009) 2017-10-25 11:13:50 -07:00