In some legacy code, strings are used as enums, and should be limited to a certain number of available values. Is this possible to do with Flow?
Can Flow limit strings to a number of alternatives, similar to enum?
18 views Asked by Olle Härstedt At
1
Yes, it's called a "literal union" in flow. See https://flow.org/en/docs/types/literals/.