Skip to content

fix: update JSDoc to convey only false return#152

Merged
UlisesGascon merged 1 commit intojshttp:masterfrom
kellyselden:jsdoc_false
Nov 19, 2025
Merged

fix: update JSDoc to convey only false return#152
UlisesGascon merged 1 commit intojshttp:masterfrom
kellyselden:jsdoc_false

Conversation

@kellyselden
Copy link
Copy Markdown
Contributor

@kellyselden kellyselden commented Jun 10, 2025

This is a minor optimization/fix to allow the following

/** @type {string} */
let foo;
foo = mimeTypes.lookup(filePath) || 'text/html';

without a JSDoc error.

This is a minor optimization/fix to allow the following

```js
/** @type {string}
let foo;
foo = mimeTypes.lookup(filePath) || 'text/html';
```

without a JSDoc error.
Copy link
Copy Markdown
Member

@UlisesGascon UlisesGascon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kellyselden! I will include this in the next release 🥳

@UlisesGascon UlisesGascon self-assigned this Nov 19, 2025
@UlisesGascon UlisesGascon merged commit 02e8eb2 into jshttp:master Nov 19, 2025
10 checks passed
@UlisesGascon UlisesGascon mentioned this pull request Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants