/** * Helper type to determine if a type is a union. * * @public */ export type IsUnion = [T] extends [UnionToIntersection] ? false : true; /** * Helper type to convert a union to an intersection. * * @public */ export type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; /** * Helper type to determine if a type is a string union. * * @public */ export type IsStringUnion = IsUnion extends true ? (T extends string ? true : false) : false; /** * Helper type to extract a string union from a type. * * @public */ export type StringUnion = [T] extends [string] ? string extends T ? never : T : never; //# sourceMappingURL=StringUnion.d.ts.map