CodeMirror has an “of” pattern in many of its functions:
let syncAnnotation = Annotation.define<boolean>()
syncAnnotation.of(true)
// ...
Transaction.userEvent.of(userEvent)
I have not encountered this pattern before and I am having trouble understanding it. What is the name of this pattern? Can you suggest a source to understand it better?