@types/gulp-cheerio
TypeScript icon, indicating that this package has built-in type declarations

0.0.38 • Public • Published

Installation

npm install --save @types/gulp-cheerio

Summary

This package contains type definitions for gulp-cheerio (https://github.com/KenPowers/gulp-cheerio).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-cheerio.

index.d.ts

/// <reference types="cheerio" />
/// <reference types="node" />
/// <reference types="vinyl" />

import Vinyl = require("vinyl");
import cheerio = require("cheerio");

declare namespace gulpCheerio {
    interface GulpCheerio {
        (callback: Callback): NodeJS.ReadWriteStream;
        (option: Option): NodeJS.ReadWriteStream;
    }

    interface Callback {
        ($: cheerio.Root, file: Vinyl, done?: Function): any;
    }

    interface Option {
        run?: Callback | undefined;
        parserOptions?: cheerio.CheerioParserOptions | undefined;
        cheerio?: cheerio.Root | undefined;
    }
}

declare var gulpCheerio: gulpCheerio.GulpCheerio;

export = gulpCheerio;

Additional Details

Credits

These definitions were written by Qubo.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gulp-cheerio

Weekly Downloads

865

Version

0.0.38

License

MIT

Unpacked Size

4.17 kB

Total Files

5

Last publish

Collaborators

  • types