We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsdoc set
https://www.typescriptlang.org/play?ts=5.4.5&filetype=js#code/KYDwDg9gTgLgBAYwDYEMDOa4DUBiBLJYOAbwCg44B6AKmvIurgAEpgYBXKAO02LRih4uAcwC+9ONUr1hbOGBQwAFgAoAlCQlxWHbnADk++uPo06FScwVQUAWxIBVAEoAZOAB84-QSNHzFShJS9GhyCsoq4UoaZBTiJggQPPAAZgREALxwXMAA7tj4hOqkaYQAdFFwWfqUaBC2wJRRRqXAFQFV2Xlwzi4q+q0AXJQjdQ1NAfpqQA
export class VFile { /** * @returns {string} */ get path() { return '' } /** * @param {URL | string} path */ set path(path) { } } const file = new VFile() file.path = '/some/path' file.path = new URL('file:///some/path')
.d.ts
The setter type annotation should be emitted as the setter type
This only affects types in JSDoc. Correct types are emitted for the equivalent TypeScript code.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
π Search Terms
jsdoc set
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?ts=5.4.5&filetype=js#code/KYDwDg9gTgLgBAYwDYEMDOa4DUBiBLJYOAbwCg44B6AKmvIurgAEpgYBXKAO02LRih4uAcwC+9ONUr1hbOGBQwAFgAoAlCQlxWHbnADk++uPo06FScwVQUAWxIBVAEoAZOAB84-QSNHzFShJS9GhyCsoq4UoaZBTiJggQPPAAZgREALxwXMAA7tj4hOqkaYQAdFFwWfqUaBC2wJRRRqXAFQFV2Xlwzi4q+q0AXJQjdQ1NAfpqQA
π» Code
π Actual behavior
.d.ts
fileπ Expected behavior
The setter type annotation should be emitted as the setter type
Additional information about the issue
This only affects types in JSDoc. Correct types are emitted for the equivalent TypeScript code.
The text was updated successfully, but these errors were encountered: