After #23511, the assert in getJSDocHost throws when checking a type reference in a jsdoc type literal:
function PluginFunction() {
}
/**
* @param {object} options Options for the profiled fn.
* @param {PluginFunction} options.fn Plugin function
* @returns {*} Chainable hooked function.
*/
const makeNewProfiledTapFn = ({ fn }) => {
};
Found by compiling webpack with typescript from master.
Expected behavior:
PluginFunction is resolved as a type.
Actual behavior:
Assert, options.fn has a parent that is not a jsdoc comment. It is a jsdoc type literal.
After #23511, the assert in getJSDocHost throws when checking a type reference in a jsdoc type literal:
Found by compiling webpack with typescript from master.
Expected behavior:
PluginFunction is resolved as a type.
Actual behavior:
Assert,
options.fnhas a parent that is not a jsdoc comment. It is a jsdoc type literal.