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: Add support for Mapped Types #124

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

roboz0r
Copy link
Contributor

@roboz0r roboz0r commented Sep 17, 2024

declare const NODES: readonly ["a", "button"];
type Primitives = {
    [E in (typeof NODES)[number]]: boolean;
};

transforms to

[<AllowNullLiteral>]
[<Interface>]
type Primitives =
    abstract member a: bool with get, set
    abstract member button: bool with get, set

Summary

@MangelMaxime MangelMaxime merged commit 297c7f9 into glutinum-org:main Sep 17, 2024
2 checks passed
@MangelMaxime
Copy link
Contributor

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants