Assert that a type is a Map.
Map
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 Copy
type A = AssertMap< Map< string, number > >; // ✓type B = AssertMap< Set< number > >; // ✗ TS error
Assert that a type is a
Map.