Skip to main content
Version: 1.0.29-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")