import { If } from "./if"; import { IfNot } from "./if-not"; import { IsNever } from "./never"; export type EmptyString = "" extends T ? string extends T ? never : T : never; export type NonEmptyString = string extends T ? string : If>, T, never>; export type IsEmptyString = IfNot>>; export type IsNonEmptyString = IfNot< IsNever> >; export type IfEmptyString< T extends string, IfTrue = true, IfFalse = false > = IfNot>, IfTrue, IfFalse>; export type IfNonEmptyString< T extends string, IfTrue = true, IfFalse = false > = IfNot>, IfTrue, IfFalse>;