From f5833fcbf8fb03e9ce32d5e911c5e2e629536323 Mon Sep 17 00:00:00 2001 From: CentreMetre Date: Mon, 15 Jun 2026 21:15:44 +0100 Subject: [PATCH] Fix doc typos and add Table class summary line Correct 'A object' -> 'An object' and 'if i iss not set' -> 'if it is not set', and add a one-line summary to the Table class JSDoc. --- abstract-table.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/abstract-table.ts b/abstract-table.ts index 7c08e93..f129b78 100644 --- a/abstract-table.ts +++ b/abstract-table.ts @@ -4,7 +4,7 @@ */ export type TableOptions = { /** - * A object with the same properties, but all string type for the header cell values. + * An object with the same properties, but all string type for the header cell values. * Used by passing an object with the keys of {@link TRow} and the name preferred. E.g. for a user: * ```{ id: "ID", name: "Name" }```, this makes the columns appear in the order of ID then Name. */ @@ -23,6 +23,7 @@ export type TableOptions = { }; /** + * Abstract base class that renders typed row data as an HTML `` on a web page. * @template TRow A type that the shape of a row should be. E.g. * ``` * type User = { @@ -233,7 +234,7 @@ export abstract class Table { /** * Get the message element for the table. - * @return The HTMLElement that is used for showing messages. Or null if i iss not set. + * @return The HTMLElement that is used for showing messages. Or null if it is not set. */ getMessageElement(): HTMLElement | null { return this.messageEl;