If it’s just about mapping status → count, you could use a regular JS map:
type status = Tracking | Watching | Completed
let m = Map.make()
m->Map.set(Watching, 1)
If it’s just about mapping status → count, you could use a regular JS map:
type status = Tracking | Watching | Completed
let m = Map.make()
m->Map.set(Watching, 1)