次の方法で共有


TrackBaseUnion type

type TrackBaseUnion = TrackBase | AudioTrack | VideoTrack | TextTrack_2