Updated dependencies

This commit is contained in:
martin
2023-06-03 18:12:13 +02:00
parent ae1ec571f8
commit 58fb93fef0
3 changed files with 444 additions and 404 deletions

View File

@ -5,5 +5,5 @@
* @returns The element with the given id, or null if it doesn't exist
*/
export function getElementById<T extends HTMLElement = HTMLElement>(id: string): T | null {
return document.getElementById(id) as T | null;
return <T>document.getElementById(id);
}