Updated dependencies
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user