From 600c337b1cdc884aebf59083eb57b178b43441ce Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 13 Jul 2026 11:35:08 +0530 Subject: docs: added some documentation comments to all functions --- src/shared/styling.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/shared/styling.ts') diff --git a/src/shared/styling.ts b/src/shared/styling.ts index 759fecb..b19ace4 100644 --- a/src/shared/styling.ts +++ b/src/shared/styling.ts @@ -1,3 +1,10 @@ +/** + * Applies a set of inline CSS styles to every element matching the + * given CSS selector. + * + * @param selector - CSS selector string. + * @param styles - A map of CSS property names to values. + */ export function styles(selector: string, styles: Record) { const elements = Array.from(document.querySelectorAll(selector)) as HTMLElement[]; -- cgit v1.2.3