Remove undefined from type July 18, 2023 by Tarik You will want to use NonNullable: type Foo = NonNullable<FooOrUndefined> // { bar: number; } Sample