Gojs version 2+ alternate code (validCycle: go.Diagram.CycleMode.DestinationTree)

my diagram not accept validCycle: go.Diagram.CycleMode.DestinationTree please give me alternate option in gojs version 2.3.17

There’s the new enum:
go.CycleMode.DestinationTree
or the old static property:
go.Diagram.CycleDestinationTree

Either should work in 2.3.17 or 3.0.*.