I'm writing some code comments using JSDoc style, and want to know what *=
implies in @returns {function(*=): *}
, which is generated by WebStorm.
I have tried to search the JSDoc wiki and usejsdoc.org but with no result.
Below is my code:
/**
* Get record data listener generator.
* @param {Function} createProps
* @returns {function(*=): *} // ** generated by webstorm **
*/
export function getRecordCustomDataListener(createProps) {
return (callback) => onRecordCustomData({ createRecordData: createProps })(callback); // `onRecordCustomData` has not default argument
}
I want to know what *=
implies in @returns {function(*=): *}
.