From cc071ce9a72d909aeb080741ef0c59dddf8622fb Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sun, 21 Jun 2026 02:05:01 +0200 Subject: [PATCH] style: format static/q.ts --- static/q.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/static/q.ts b/static/q.ts index 6dca0eb..45b3573 100644 --- a/static/q.ts +++ b/static/q.ts @@ -1,16 +1,10 @@ -/** - * querySelector on a container element, scoped to that element. - */ +/** QuerySelector on a container element, scoped to that element. */ export const q = (container: HTMLElement, selector: string): T | null => - container.querySelector(selector) as T | null; + container.querySelector(selector); -/** - * querySelector on the document. - */ +/** QuerySelector on the document. */ export const qs = (selector: string): T | null => - document.querySelector(selector) as T | null; + document.querySelector(selector); -/** - * Get a data attribute value from an element, defaults to empty string. - */ +/** Get a data attribute value from an element, defaults to empty string. */ export const dataset = (el: HTMLElement, key: string): string => el.dataset[key] ?? "";