Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(types): add helpful global utility types #13

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kasparszarinovs
Copy link
Contributor

@kasparszarinovs kasparszarinovs commented May 24, 2022

Add helpful utility types:

  • ValueOf - extracting values from another type.
  • Optional - like Partial, but allows specifying select keys only.
  • Nullable - "shorthand" to T | null.
  • Replace - replace the type for specified keys of a type.

TBC...

I'd appreciate feedback on currently added types, and any new utility type suggestions.

@kasparszarinovs kasparszarinovs self-assigned this May 24, 2022
@kasparszarinovs kasparszarinovs marked this pull request as draft May 24, 2022 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant