ts-type-forge
    Preparing search index...

    Type Alias MutableSet<K>

    MutableSet: Set<K>

    Alias for the standard Set<K> type. Represents a mutable set collection. Provided for consistency with naming conventions and to make intent explicit.

    Type Parameters

    • 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 mutable
    tags.delete('react'); // ✓ allowed