This commit is contained in:
Nikhil Nawgiri 2024-10-26 17:25:40 +02:00
parent 83b8c86cac
commit 6ad2721831

View file

@ -6,11 +6,14 @@ interface JellyfinApiResponse {
StartIndex?: number,
};
const init = async () => {
const response: JellyfinApiResponse = await fetchFromApi();
const { Items: items, TotalRecordCount: totalItemCount } = response;
const run = async () => {
const {
Items: items,
TotalRecordCount: totalItemCount
}: JellyfinApiResponse = await fetchFromApi();
console.log("items:", items);
console.log("totalItemCount:", totalItemCount);
}
init();
run();