Type Alias Query

Query:
    | {
        album_name?: string;
        artist_name: string;
        duration?: number;
        id?: never;
        track_name: string;
    }
    | {
        album_name?: never;
        artist_name?: never;
        duration?: never;
        id: number;
        track_name?: never;
    }

Defines the query object used to search for lyrics.

This type is a union of two possible structures:

  1. Search by track details (e.g., track name and artist).
  2. Search by a unique track ID.