brows3r — TypeScript API
    Preparing search index...

    Interface LocksState

    interface LocksState {
        locks: ResourceLock[];
        addLock(lock: ResourceLock): void;
        byScope(scope: string): ResourceLock[];
        clearAll(): void;
        isLocked(scope: string): boolean;
        removeLock(lockId: string): void;
    }
    Index

    Properties

    locks: ResourceLock[]

    Methods

    • Remove all locks (called on app startup to clear stale locks).

      Returns void

    • Whether any lock matches the given scope.

      Parameters

      • scope: string

      Returns boolean

    • Remove a lock by id (called when lock:released fires).

      Parameters

      • lockId: string

      Returns void