Creates a type that is T with the required keys K.
RequiredBy<{ a?: string, b: number }, 'a'>=> { a: string, b: number } Copy
RequiredBy<{ a?: string, b: number }, 'a'>=> { a: string, b: number }
Description
Creates a type that is T with the required keys K.
Example