Skip to content

Encode string enums as polymorphic variants #7

Open
@TheSpyder

Description

@TheSpyder

This is a relatively recent feature of ReScript, and will replace the variant-based code that requires runtime functions, for example:
https://github.com/tinymce/rescript-webapi/blob/0c9e9211785852e69f2d2a17c765e63c5697217f/src/Webapi/Dom/Webapi__Dom__Element.re#L76-L86

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions