Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowflake107 committed May 26, 2021
1 parent 2f48829 commit 013516e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xvdl",
"version": "1.0.5",
"version": "2.0.0",
"description": "Video downloader for xvideos.com written in pure JavaScript.",
"main": "index.js",
"types": "./typings/index.d.ts",
Expand Down
7 changes: 2 additions & 5 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import m3u8 from "m3u8stream";
import { Readable } from "stream";
import miniget from "miniget";

declare module "xvdl" {
Expand Down Expand Up @@ -75,10 +75,7 @@ declare module "xvdl" {
export class XVDL {
public static browse(path?: string): Promise<BrowseResult>;
public static getInfo(url: string): Promise<VideoInfo>;
public static download(url: string, options: DownloadOptions & { type: "lq" }): Promise<miniget.Stream>;
public static download(url: string, options: DownloadOptions & { type: "hq" }): Promise<miniget.Stream>;
public static download(url: string, options: DownloadOptions & { type: "hls" }): Promise<m3u8.Stream>;
public static download(url: string, options?: DownloadOptions): Promise<miniget.Stream|m3u8.Stream>;
public static download(url: string, options?: DownloadOptions): Readable;
public static search(query: string, page?: number): Promise<SearchResult>;
}

Expand Down

0 comments on commit 013516e

Please sign in to comment.