lifecycle-utils
    Preparing search index...

    Type Alias ValidLockScope<T>

    ValidLockScope: IncludesObject<T> extends true
        ? Readonly<T & [...T]>
        : InvalidScopeError<
            "Scope array must include at least one object reference",
        >

    Ensure that the scope array contains at least one object, otherwise it will be never.

    Type Parameters

    • T extends readonly unknown[] = readonly unknown[]