mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
35 lines
922 B
TypeScript
35 lines
922 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 path="../cheerio/cheerio.d.ts" />
|
|
/// <reference path="../node/node.d.ts" />
|
|
/// <reference path="../vinyl/vinyl.d.ts"/>
|
|
|
|
declare module "gulp-cheerio" {
|
|
import Vinyl = require('vinyl');
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
var cheerio: cheerio.Cheerio;
|
|
|
|
export = cheerio;
|
|
}
|
|
|