GithubHelp home page GithubHelp logo

deno_cheerio's Issues

How to access CheerioElement, CheerioStatic, etc.?

This is a great library @justjavac! Thanks for putting it together.

I've been using deno_cheerio successfully for many months now but recently something changed and I'm not able to access CheerioElement, CheerioStatic, and similar.

For example, until last week this worked:

// @deno-types="https://cdn.jsdelivr.net/gh/justjavac/deno_cheerio/cheerio.d.ts"
import cheerio from "https://dev.jspm.io/cheerio/index.js";

export interface HtmlImage {
  readonly src?: string;
  readonly alt?: string;
  readonly width?: number | string;
  readonly height?: number | string;
  readonly imageElem: CheerioElement;
}

Now, however, after the latest update I'm seeing this problem:

TS2304 [ERROR]: Cannot find name 'CheerioElement'.
    elem: CheerioElement,
          ~~~~~~~~~~~~~~

Any ideas on how I can fix that issue?
I just tried the following, too:

  readonly imageElem: cheerio.CheerioElement;

But that did not work either, I get this error:

error: TS2503 [ERROR]: Cannot find namespace 'cheerio'.
  readonly imageElem: cheerio.CheerioElement;
                      ~~~~~~~

Any help would be appreciated.
Thanks again for the great work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.