Add RequiredProperties utility type #45768
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
T & Required<Pick<T, K>>
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
I suggest to add a new utlity type, that makes selected properties required:
π Motivating Example
This could help in such a sneario:
π» Use Cases
An ideal use case would be as part of type predicates to use with
Array.prototype.filter
:The text was updated successfully, but these errors were encountered: