WithRequiredProperty
WithRequiredProperty: T & { [Property in K]-?: T[Property] }
Utility type used to remove some optional attributes (coming from K) from a type T
Type Parameters
TobjectRequiredKkeyof TRequiredWas this section helpful?
WithRequiredProperty: T & { [Property in K]-?: T[Property] }
Utility type used to remove some optional attributes (coming from K) from a type T
TobjectRequiredKkeyof TRequired