// Type definitions for non-npm package mozilla-readability 0.2 // Project: https://github.com/mozilla/readability // Definitions by: Charles Vandevoorde , Alex Wendland // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 declare module '@omnivore/readability' { /** * A standalone version of the readability library used for Firefox Reader View. * * Note that isProbablyReaderable() was moved into a separate file in https://github.com/mozilla/readability/commit/2620542dd1e8380220d82afa97a2c283ae636e40 * and therefore is no longer part of the Readability class. */ class Readability { /** * ## Usage on the web * * To parse a document, you must create a new Readability object from a * DOM document object, and then call parse(). Here's an example: * * ```js * var article = new Readability(document).parse(); * ``` * * If you're using Readability on the web, you will likely be able to * use a document reference from elsewhere (e.g. fetched via XMLHttpRequest, * in a same-origin