ForNeVeR / ForNeVeR/catberry-ts

Handle multiple return types

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.