haejunejung / ts-typekit

🧰 A Collection of TypeScript Utility Types
https://ts-typekit.vercel.app
MIT License
9 stars 0 forks source link

Support for PickNonNullable #61

Closed haejunejung closed 2 months ago

haejunejung commented 2 months ago

It provides support for PickNonNullable. This is a version of NonNullable within the Pick series (e.g., PickRequired, PickOptional). It is useful when we need to change specific properties to NonNullable while leaving others unchanged.

One practical example is managing form states, such as for email, password, or chips. These states typically remain NonNullable. However, if the original type does not include NonNullable, instead of creating a new type, using PickNonNullable is a good option.