What's the syntax error here?


#1

I am getting a syntax error from the compiler for this, and am scratching my head

module SwipeRightToCompleteOptions = {
  type direction = Gesture.JqueryGesture.SwipeRight; /* Error is at the end of this line*/
};

It there something obviously wrong there?


#2

Okay, the answer is that I didn’t get that SwipeRight (which is a variant) is a value not a type. So I need to do let direction = ...