refactor: add font management module and update global types (#1317)

This commit is contained in:
Marc Emmanuel 2026-02-16 00:15:37 +01:00 committed by GitHub
parent 4936a887ab
commit 9fb1b9c410
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 179 additions and 143 deletions

View file

@ -1,4 +1,5 @@
export const byId = document.getElementById.bind(document);
export const byId = <T extends HTMLElement>(id: string): T | undefined =>
document.getElementById(id) as T;
declare global {
interface Window {