devtypes - v2.0.0
    Preparing search index...

    Type Alias AssertSet<T>

    AssertSet: T

    Assert that a type is a Set.

    Type Parameters

    • T extends Set<any>

      Type that must be a Set

    Ensures the type extends the built-in Set type. Element type is not restricted.

    type A = AssertSet< Set< number > >;  // ✓
    type B = AssertSet< number[] >; // ✗ TS error