次の方法で共有


FacetUnion type

type FacetUnion = Facet | FacetResult | FacetError