type StringNonEmpty<T>
Accepts all strings with at least one character.
Definition
export type StringNonEmpty<T> = T extends string ? '' extends T ? never : T : never;
type StringNonEmpty<T>
Accepts all strings with at least one character.
export type StringNonEmpty<T> = T extends string ? '' extends T ? never : T : never;