Skip to content

Commit

Permalink
fix(types): fix return type of youtubeDl function (#211)
Browse files Browse the repository at this point in the history
Co-authored-by: Simone Gosetto <simone.g@myvirtualab.it>
  • Loading branch information
simonegosetto and Simone Gosetto authored Sep 17, 2024
1 parent 18f9743 commit dcfa0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export type Flags = {

export type Exec = (url: string, flags?: Flags, options?: SpawnOptions) => SubprocessPromise
export type Create = (binaryPath: string) => { (url: string, flags?: Flags, options?: SpawnOptions): Promise<Payload>; exec: Exec }
export const youtubeDl: ((...args: Parameters<Exec>) => Promise<Payload>) & { exec: Exec, create: Create }
export const youtubeDl: ((...args: Parameters<Exec>) => Promise<Payload | string>) & { exec: Exec, create: Create }

export function exec(...args: Parameters<Exec>): ReturnType<Exec>
export function create(...args: Parameters<Create>): ReturnType<Create>
Expand Down

0 comments on commit dcfa0d0

Please sign in to comment.