mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-31 20:10:37 +00:00
* 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
23 lines
704 B
TypeScript
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;
|
|
}
|
|
}
|