Closed Codex- closed 5 years ago
Let me know if there's anything in the style guide that could be clearer or improved. It's still a work-in-progress :)
Re: the guide. I suppose the main thing I found a little tricky at first was how to use the type assertions correctly, I ended up going through a few other projects to understand the usage more correctly.
Also note:
For packages with a default export, use
export default foo;
, notexport = foo;
. You will have to addmodule.exports.default = foo;
to theindex.js
file.
You also left out types for the default export.
Yup I've come to realize this after the comment around the stream options, will sort out soonish :)
I've hopefully this time covered everything :)
Mistakes were made...
Should be good now.
Actually I take it back, few issues to look at still, will comment when ready for another review
Updated with the default export and fixed some typings. I think this is more up to scratch now. Sorry for the delays, uni has been crazy busy.
Can you please clarify a couple of things:
If the parameter description just repeats the parameter name, leave it out.
Does this mean I should remove all docstring params that are simply @param transform
or that there shouldn't be a description if the description just repeats the param such as @param transform the transform function
.
In the readme it specifies unhooks both stdout and stderr
but if you use custom or additional streams it unhooks these too, should it in that case read something more along the lines of unhooks both stdout, stderr or any specified streams
Cheers
Does this mean I should remove all docstring params that are simply @param transform
Yes
In the readme it specifies unhooks both stdout and stderr but if you use custom or additional streams it unhooks these too, should it in that case read something more along the lines of unhooks both stdout, stderr or any specified streams
Maybe just:
Unhooks the streams in the
streams
option.
Just wondering if there were any pending changes you were wanting that I have possibly missed?
Thank you :)
Great, thanks Sindre!
Removed my request from DefinitelyTyped and migrated following your guide.
Hopefully this meets the requirements :)