EmptyElementSet<T>: Record<string, never> & Record<string, T>

This bit of hackery describes a set that has no elements but for which typescript thinks it knows the type if you index generically by string.

Type Parameters

  • T