Skip to content

Commit d29d75a

Browse files
akawahuynhakawahuynh
and
akawahuynh
authored
fix: add FormatSort type (#209)
Co-authored-by: akawahuynh <[email protected]>
1 parent e788fb7 commit d29d75a

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

src/index.d.ts

+30-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,35 @@ export type Thumbnail = {
237237
width?: number;
238238
resolution?: string;
239239
}
240-
240+
export type OptionFormatSort =
241+
| "hasvid"
242+
| "hasaud"
243+
| "ie_pref"
244+
| "lang"
245+
| "quality"
246+
| "source"
247+
| "proto"
248+
| "vcodec"
249+
| "acodec"
250+
| "codec"
251+
| "vext"
252+
| "aext"
253+
| "ext"
254+
| "filesize"
255+
| "fs_approx"
256+
| "size"
257+
| "height"
258+
| "width"
259+
| "res"
260+
| "fps"
261+
| "hdr"
262+
| "channels"
263+
| "tbr"
264+
| "vbr"
265+
| "abr"
266+
| "br"
267+
| "asr";
268+
export type OptionFormatSortPlus = OptionFormatSort | `+${OptionFormatSort}`
241269
export type Flags = {
242270
abortOnError?: boolean
243271
abortOnUnavailableFragment?: boolean
@@ -289,6 +317,7 @@ export type Flags = {
289317
forceIpv6?: boolean
290318
forceKeyframesAtCuts?: boolean
291319
format?: string
320+
formatSort?: OptionFormatSortPlus[]
292321
geoBypass?: boolean
293322
geoBypassCountry?: string
294323
geoBypassIpBlock?: string

0 commit comments

Comments
 (0)