DefinitelyTyped/types/gulp-cheerio/index.d.ts
2017-03-24 14:27:52 -07:00

32 lines
796 B
TypeScript

// Type definitions for gulp-cheerio
// Project: https://github.com/KenPowers/gulp-cheerio
// Definitions by: Qubo <https://github.com/tkQubo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="cheerio" />
/// <reference types="node" />
/// <reference types="vinyl" />
import Vinyl = require('vinyl');
declare namespace cheerio {
interface Cheerio {
(callback: Callback): NodeJS.ReadWriteStream;
(option: Option): NodeJS.ReadWriteStream;
}
interface Callback {
($: CheerioStatic, file: Vinyl, done?: Function): any;
}
interface Option {
run?: Callback;
parserOptions?: CheerioOptionsInterface;
cheerio?: CheerioStatic;
}
}
declare var cheerio: cheerio.Cheerio;
export = cheerio;