Exclude type Type from the properties of Obj.
Type
Obj
type Foo = { a: string | null; b: number };type Bar = ExcludeType<Foo, null>;// Bar = { a: string, b: number } Copy
type Foo = { a: string | null; b: number };type Bar = ExcludeType<Foo, null>;// Bar = { a: string, b: number }
Exclude type
Type
from the properties ofObj
.