BUG: getCursor()

According to the API

abstract getCursor(string?: 'from' | 'to' | 'head' | 'anchor'): EditorPosition;

argument name string seems like a bad choice. Maybe type would be better?