From 90bcec1f3deadc191410019cf39b16760b9d40e0 Mon Sep 17 00:00:00 2001 From: Aleksei Ivanov Date: Sun, 28 Dec 2025 06:29:22 +0300 Subject: [PATCH] docs: clarify method documentation for lock.extend() Clarify the behavior of the extend method --- packages/verrou/src/lock.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/verrou/src/lock.ts b/packages/verrou/src/lock.ts index 9bba677..f334ea6 100644 --- a/packages/verrou/src/lock.ts +++ b/packages/verrou/src/lock.ts @@ -183,6 +183,9 @@ export class Lock { /** * Extends the lock TTL + * + * Note: this resets the lock TTL, it does not + * add duration to the current lock TTL */ async extend(ttl?: Duration) { const resolvedTtl = ttl ? resolveDuration(ttl) : this.#ttl