This is a type that removes the optional mark from the properties in the K union. This means that they will be required.
type Foo = {bar?: stringbaz?: number}type FooRequired = WithRequired<Foo, 'bar' | 'baz'>// type FooRequired = {// bar: string// baz: number// } Copy
type Foo = {bar?: stringbaz?: number}type FooRequired = WithRequired<Foo, 'bar' | 'baz'>// type FooRequired = {// bar: string// baz: number// }
This is a type that removes the optional mark from the properties in the K union. This means that they will be required.