Extracts keys from a type T that represent required properties. Properties that are not marked with ?.
T
?
type T = RequiredKeys<{ a: number; b?: string }> // Result: 'a' Copy
type T = RequiredKeys<{ a: number; b?: string }> // Result: 'a'
Extracts keys from a type
T
that represent required properties. Properties that are not marked with?
.