type to require fields in
fields to require
a type with the specified fields required
type Example = { a?: number, b?: string }
type RequiredFields = RequireFields<Example, 'a'> // { a: number, b?: string }
type RequiredFields = RequireFields<Example, 'a' | 'b'> // { a: number, b: string }
Generated using TypeDoc
Requires the specified fields K in type T.