TypeScript Tip: Required Utility Type

preview_player
Показать описание
TypeScript provides several utility types to facilitate common type transformations. These utilities are available globally.

The Required TypeScript utility type constructs a new type consisting of all properties of Type set to required. If you're following the TypeScript utility types guide, this is the opposite of Partial.
Рекомендации по теме