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