devtypes - v2.0.0
    Preparing search index...

    Type Alias AssertMap<T>

    AssertMap: T

    Assert that a type is a Map.

    Type Parameters

    • T extends Map<any, any>

      Type that must be a Map

    Ensures the type extends the built-in Map type. Key and value types are not restricted.

    type A = AssertMap< Map< string, number > >;  // ✓
    type B = AssertMap< Set< number > >; // ✗ TS error