jsdoc returns type is imported from absolute path
Closed this issue · 0 comments
milahu commented
typescript input
export interface SomeType {
someKey: string;
}
export function someFunction(someString: string): SomeType {
return { someKey: someString };
}
actual javascript output
/** @param {string} someString
* @returns {import("/absolute/path/to/workdir/input-file-basename.ts-to-jsdoc").SomeType}
*/
export function someFunction(someString) {
return { someKey: someString };
}
/** @typedef {Object} SomeType
* @property {string} someKey
*/
expected jsdoc comment: no type import
/** @param {string} someString
* @returns {SomeType}
*/