Skip to content

Commit

Permalink
Fix missing TS types in getStreamInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Oct 19, 2023
1 parent 974c731 commit 9a30615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/getStreamInfo.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { decryptKeyId } from "./decryptKeyId";
import { getHeaders } from "./fetchy";
import { validQualitiesSet, validQualities } from "./AudioQuality";
import { validQualitiesSet, validQualities, PlaybackContextAudioQuality } from "./AudioQuality";

export const getStreamInfo = async (trackId, audioQuality) => {
export const getStreamInfo = async (trackId: number, audioQuality: PlaybackContextAudioQuality) => {
if (!validQualitiesSet.has(audioQuality)) throw new Error(`Invalid audio quality: ${audioQuality}, should be one of ${validQualities.join(", ")}`);
if (trackId === undefined) throw new Error("trackId is required");

Expand Down

0 comments on commit 9a30615

Please sign in to comment.