From 16ea9f7e612138238a2550cefce8da617d1bd9a7 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Fri, 17 Oct 2025 04:58:40 +0000 Subject: [PATCH 1/5] docs: Add docstrings to `add-context-menu` Docstrings generation was requested by @snipsnipsnip. * https://github.com/exteditor/ghostbird/pull/39#issuecomment-3406395919 --- src/util/time.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/time.ts b/src/util/time.ts index 6924a79..e8df42a 100644 --- a/src/util/time.ts +++ b/src/util/time.ts @@ -2,6 +2,12 @@ export interface Disposable { [Symbol.dispose]: () => void } +/** + * Starts a timer and returns a Disposable that logs the elapsed time when disposed. + * + * @param label - Text used as the message label when logging the elapsed time + * @returns A Disposable whose `[Symbol.dispose]` method logs the elapsed time in milliseconds as "`