Skip to content

Commit

Permalink
fix: add FormatSort type (#209)
Browse files Browse the repository at this point in the history
Co-authored-by: akawahuynh <[email protected]>
  • Loading branch information
akawahuynh and akawahuynh authored Sep 11, 2024
1 parent e788fb7 commit d29d75a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,35 @@ export type Thumbnail = {
width?: number;
resolution?: string;
}

export type OptionFormatSort =
| "hasvid"
| "hasaud"
| "ie_pref"
| "lang"
| "quality"
| "source"
| "proto"
| "vcodec"
| "acodec"
| "codec"
| "vext"
| "aext"
| "ext"
| "filesize"
| "fs_approx"
| "size"
| "height"
| "width"
| "res"
| "fps"
| "hdr"
| "channels"
| "tbr"
| "vbr"
| "abr"
| "br"
| "asr";
export type OptionFormatSortPlus = OptionFormatSort | `+${OptionFormatSort}`
export type Flags = {
abortOnError?: boolean
abortOnUnavailableFragment?: boolean
Expand Down Expand Up @@ -289,6 +317,7 @@ export type Flags = {
forceIpv6?: boolean
forceKeyframesAtCuts?: boolean
format?: string
formatSort?: OptionFormatSortPlus[]
geoBypass?: boolean
geoBypassCountry?: string
geoBypassIpBlock?: string
Expand Down

0 comments on commit d29d75a

Please sign in to comment.