typelab / utils / ExcludeUndefined
type ExcludeUndefined<T> = Exclude<T, undefined>;Exclude undefined from type T.
| Type Parameter | Description |
|---|---|
|
|
The original type. |
T without `undefined.
type NonUndefinedType = ExcludeUndefined<string | undefined>; // string