How to use the cheerio.default function in cheerio

To help you get started, we’ve selected a few cheerio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Siteimprove / alfa / packages / alfa-cheerio / src / types.ts View on Github external
// TypeScript does not output an import of cheerio in the declaration file,
// leaving consumers confused. To get around this, we explicitly add a reference
// to the cheerio types.
//
// tslint:disable:no-reference-import

/// 

import * as Cheerio from "cheerio";

export const CheerioWrapper = Cheerio.default;
export type CheerioWrapper = Cheerio;

export type CheerioElement = CheerioWrapper[0];