mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-30 04:47:03 +02:00
all the lints
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* @param elementId The HTML ID to retrieve the element by.
|
||||
* @throws {Error} When the 'elementId' cannot be found.
|
||||
*/
|
||||
export function getElementById(elementId: string) {
|
||||
export function getElementById(elementId: string): HTMLElement {
|
||||
const el: HTMLElement | null = document.getElementById(elementId);
|
||||
if (el === null) {
|
||||
throw new Error(`Unable to find element with id '${elementId}'`);
|
||||
|
||||
Reference in New Issue
Block a user