ForNeVeR / ForNeVeR/catberry-ts
Handle multiple return types
Open
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
There are cases when JavaScript functions are defined with multiple return types. For example,
``` js
/**
* Handles found component tags.
* @param {Object} tagDetails Object with tag details.
* @returns {Readable|null} Replacement stream of HTML or null.
*/
/*jshint maxcomplexity:false */
ComponentTransform.prototype.foundComponentHandler
```
These cases should generate proper TypeScript definitions. Currently all types except first are deleted.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.