It is because of the API docs. The 'function' annotation is for JSDoc, and the reason why the function is documented here is because it is exported here. These things will be simplified with #1979.