import { UnionContained } from './UnionContained'; /** * Check whether a type is a union (of string literals). */ // export type IsUnion = { [P in T]: UnionContained }//[T]; export type IsUnion< T extends string, O extends { [P in T]: UnionContained } = { [P in T]: UnionContained } > = O[T];