Alias for the standard Set<K> type. Represents a mutable set collection. Provided for consistency with naming conventions and to make intent explicit.
Set<K>
The type of elements stored in the set.
type TagSet = MutableSet<string>;const tags: TagSet = new Set(['typescript', 'javascript', 'react']);tags.add('vue'); // ✓ allowed - set is mutabletags.delete('react'); // ✓ allowed Copy
type TagSet = MutableSet<string>;const tags: TagSet = new Set(['typescript', 'javascript', 'react']);tags.add('vue'); // ✓ allowed - set is mutabletags.delete('react'); // ✓ allowed
Alias for the standard
Set<K>type. Represents a mutable set collection. Provided for consistency with naming conventions and to make intent explicit.