export function getForm(id: string): HTMLFormElement {
    const el = document.getElementById(id);

    if (!(el instanceof HTMLFormElement)) {
        throw new Error('#search-participants is not a <form>');
    }

    return el;
}

export function getSelect(id: string): HTMLSelectElement {
    const el = document.getElementById(id);

    if (!(el instanceof HTMLSelectElement)) {
        throw new Error(`#${id} is not a <select>`);
    }

    return el;
}