Alias for the standard Map<K, V> type. Represents a mutable map collection. Provided for consistency with naming conventions and to make intent explicit.
Map<K, V>
The type of keys in the map.
The type of values in the map.
type UserCache = MutableMap<string, User>;const cache: UserCache = new Map();cache.set('user1', { id: 1, name: 'Alice' }); // ✓ allowed - map is mutablecache.delete('user1'); // ✓ allowed Copy
type UserCache = MutableMap<string, User>;const cache: UserCache = new Map();cache.set('user1', { id: 1, name: 'Alice' }); // ✓ allowed - map is mutablecache.delete('user1'); // ✓ allowed
Alias for the standard
Map<K, V>type. Represents a mutable map collection. Provided for consistency with naming conventions and to make intent explicit.