Files
Bogdan 7239c6a38d new definition for youtube-dl (#20428)
* new definition for youtube-dl

* Could not parse version 2.5

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* Prefer /// <reference types="node" />

* few fixes

* fixes

* assert info: youtubedl.Info

* fixes
2017-10-20 07:21:38 -07:00

23 lines
704 B
TypeScript

// Type definitions for youtube-dl 1.12
// Project: https://www.npmjs.com/package/youtube-dl
// Definitions by: Bogdan Surai <https://github.com/bsurai>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
/// <reference types="node" />
import * as fs from "fs";
export = youtubedl;
declare function youtubedl(url: string, arg: string[], opt: {[key: string]: string}): youtubedl.Youtubedl;
declare namespace youtubedl {
interface Youtubedl {
on(event: string, func: (info: Info) => void): this;
pipe(stream: fs.WriteStream): this;
}
interface Info {
_filename: string;
filename: string;
size: number;
}
}