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

Support for MapValues #45

Closed
haejunejung opened this issue Aug 25, 2024 · 0 comments · Fixed by #65
Closed

Support for MapValues #45

haejunejung opened this issue Aug 25, 2024 · 0 comments · Fixed by #65
Labels
enhancement New feature or request

Comments

@haejunejung
Copy link
Owner

haejunejung commented Aug 25, 2024

It provides support for MapValues. It is related to #44.

The MapValues type is useful when you need to work with just the values of a Map, allowing you to extract and use the value type.

type T0 = Map<string, string>;
type Expected = MapValues<T0> // string

type T1 = Map<string, '0' | '1' | '2'>;
type Expected = MapValues<T1> // '0' | '1' | '2'

Here's a detailed implementation. playground

@haejunejung haejunejung changed the title Supprt for MapValues Support for MapValues Aug 25, 2024
@haejunejung haejunejung added the enhancement New feature or request label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant