From 9a3061542c0c674639f386f6bee93820813af42c Mon Sep 17 00:00:00 2001 From: Inrixia Date: Thu, 19 Oct 2023 18:42:31 +1300 Subject: [PATCH] Fix missing TS types in getStreamInfo --- lib/getStreamInfo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/getStreamInfo.ts b/lib/getStreamInfo.ts index cac8437..c685b5f 100644 --- a/lib/getStreamInfo.ts +++ b/lib/getStreamInfo.ts @@ -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");