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

Add example on how to use union types on TM #36927

Closed
wants to merge 1 commit into from

Commits on Apr 17, 2023

  1. Add example on how to use union types on TM

    Summary:
    This change is an alternative to show how to use union types in TM **without generating union types** natively.
    
    The goal is to enable using unions in the JS layer, without compromising the Native typesafety.
    
    If this approach is a good middle-ground, we can remove the MixedTypeAnnotation and migrate to this approach.
    
    ## Changelog:
    [General][Added] - Add example on Union types for Turbomodules
    
    Differential Revision: D45045552
    
    fbshipit-source-id: 101e7036d83485e3b31802c2156d1e6dd6af9a64
    cipolleschi authored and facebook-github-bot committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    26ffa32 View commit details
    Browse the repository at this point in the history