Skip to content

TypeScript API / laikacms/storage / LockToken

Type Alias: LockToken ​

ts
type LockToken = S.Schema.Type<typeof LockToken>;

Opaque bearer capability for a held lock (ADR-007).

Comparable only by equality; never parse or interpret it. Whoever holds the token can refresh or release the lock, and may write through it, so it is returned only to the acquirer and never exposed by getLock. A force-override mints a new token, which is what invalidates the previous holder: their stale token simply stops matching.

Released under the MIT License.