Can the documentation around this be moved to the JSDoc of the relevant function in the javascript?