Skip to content
New issue

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

How to document an external type? #72

Open
MichalCz opened this issue Aug 28, 2019 · 2 comments
Open

How to document an external type? #72

MichalCz opened this issue Aug 28, 2019 · 2 comments

Comments

@MichalCz
Copy link
Contributor

Hi,

How should we document external modules in the code?

A simple example would be this:

/**
 * @returns {Readable} 
 */
function() { return fs.createReadStream('some-file.txt') }

In this case we mean import {Readable} from "stream" which should appear in the definition file.

@wehrstedt
Copy link
Collaborator

You should be able to simply provide the longname, there is nö validstion. Have you tried

/**
 * @returns {stream.Readable}
 */

@MichalCz
Copy link
Contributor Author

I'll double-check tomorrow - but I remember it wasn't sufficient. Just as if it required that import in the begining. I'll get back to you tomorrow, but today I've had some wine already so my checks may be less than useful. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants