Skip to content

Commit

Permalink
fix(types): update a few format properties
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Oct 21, 2020
1 parent 30c5f22 commit db7a7b7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions typings/index.d.ts
Expand Up @@ -24,7 +24,7 @@ declare module 'ytdl-core' {
itag: number;
url: string;
mimeType?: string;
bitrate?: number | string;
bitrate?: number;
audioBitrate?: number;
width?: number;
height?: number;
Expand All @@ -36,17 +36,17 @@ declare module 'ytdl-core' {
qualityLabel: '144p' | '144p 15fps' | '144p60 HDR' | '240p' | '240p60 HDR' | '270p' | '360p' | '360p60 HDR'
| '480p' | '480p60 HDR' | '720p' | '720p60' | '720p60 HDR' | '1080p' | '1080p60' | '1080p60 HDR' | '1440p'
| '1440p60' | '1440p60 HDR' | '2160p' | '2160p60' | '2160p60 HDR' | '4320p' | '4320p60';
projectionType: 'RECTANGULAR';
projectionType?: 'RECTANGULAR';
fps?: number;
averageBitrate: number;
averageBitrate?: number;
audioQuality?: 'AUDIO_QUALITY_LOW' | 'AUDIO_QUALITY_MEDIUM';
colorInfo?: {
primaries: string;
transferCharacteristics: string;
matrixCoefficients: string;
};
highReplication?: boolean;
approxDurationMs: string;
approxDurationMs?: string;
audioSampleRate?: string;
audioChannels?: number;

Expand All @@ -59,7 +59,6 @@ declare module 'ytdl-core' {
audioCodec?: string;

isLive: boolean;
live: boolean;
isHLS: boolean;
isDashMPD: boolean;
}
Expand Down

0 comments on commit db7a7b7

Please sign in to comment.