Skip to content

How to create Metadata with union type? #475

Answered by nartc
SymphonyNineth asked this question in Q&A
Discussion options

You must be logged in to vote

As of the moment, there's no union support for metadata. number | null is still Number in this case. If the source postalCode is null then it will be mapped to null, if the source postalCode is undefined then it will be mapped to undefined. You can use undefinedSubstitution(null) to convert it to null if the source is undefined

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SymphonyNineth
Comment options

@nartc
Comment options

@SymphonyNineth
Comment options

@SymphonyNineth
Comment options

Answer selected by SymphonyNineth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants