mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
32 lines
796 B
TypeScript
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;
|