Uh oh!
There was an error while loading. Please reload this page.
doc: fix more type case inconsistencies - #11697
Conversation
There was a problem hiding this comment.
Integer is not a valid type. Shall we change them all to number?
There was a problem hiding this comment.
I think it would make sense to be specific to keep Integer here because it doesn’t really make sense to pass in non-integer numbers here… the upper-casing is a bit weird but I’d be okay with it, as long as we try to be consistent
(also /cc @ameliavoncat whose awesome PRs also touch these parts of the docs and who might want to keep track of this discussion)
There was a problem hiding this comment.
Yeah, I guess it's better to keep it as-is. Per our rule discussed in the last PR, everything except the six primitives should be uppercased.
There was a problem hiding this comment.
@silverwind in your commit that changed the case in the doctool, Integer was changed to integer. Either way it doesn't seem right to me that number and integer have different cases.
There was a problem hiding this comment.
I think I'll move it out of jsPrimitives and into typeMap, possibly linking it to number docs.
There was a problem hiding this comment.
Can you drop the spaces before the colons in this file? We don’t do that anywhere else in the docs
d94efe0 to
d5d4274Comparesilverwind
commented
Mar 7, 2017
@TimothyGud5d4274 fixes the |
TimothyGu
commented
Mar 7, 2017
But the issue at hand is that an integer is expressed as a number primitive. I also just looked at a proposal in TypeScript to add integral types, and though not yet accepted, it also uses lower cased type name ( |
silverwind
commented
Mar 7, 2017
@TimothyGu okay, lowercased |
6acf5f0 to
2d3068bCompare2d3068b to
8ad63ecComparesilverwind
commented
Mar 8, 2017
Landed in 5f32024. |
- fix a number of uppercase types - lowercase 'integer' - consistent formatting in crypto PR-URL: #11697 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
- fix a number of uppercase types - lowercase 'integer' - consistent formatting in crypto PR-URL: nodejs#11697 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
- fix a number of uppercase types - lowercase 'integer' - consistent formatting in crypto PR-URL: nodejs#11697 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
- fix a number of uppercase types - lowercase 'integer' - consistent formatting in crypto PR-URL: nodejs#11697 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
MylesBorins
commented
Apr 17, 2017
Do we want to backport to v6.x? |
silverwind
commented
Apr 19, 2017
MylesBorins
commented
May 8, 2017
@silverwind would you be willing to put together a PR with those commits? |
silverwind
commented
May 9, 2017
@MylesBorins not right now, I'm busy on other projects. But if you can wait a bit, I can put something together later. |
silverwind
commented
May 16, 2017
Backport in #13054 |
- fix a number of uppercase types - lowercase 'integer' - consistent formatting in crypto PR-URL: nodejs#11697 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
- fix a number of uppercase types - lowercase 'integer' - consistent formatting in crypto PR-URL: nodejs#11697 Backport-PR-URL: nodejs#13054 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesTurns out I missed quite a few types in ff13619 because my
sedskills weren't up to par. This commit should fix all remaining issues with primitive type cases.I also made the syntax with multiple types consistent by removing any whitespace between curly braces. If more people prefer
{type | type | type}over{type|type|type}, I can also change to that.Type replacement was done with: