8000 Make some type capitalization match JSDoc docs. · pyodide/sphinx-js@d81154e · GitHub
[go: up one dir, main page]

Skip to content

Commit d81154e

Browse files
committed
Make some type capitalization match JSDoc docs.
(at http://usejsdoc.org/tags-param.html#optional-parameters-and-default-values)
1 parent 0ab1673 commit d81154e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/test_build/source/code.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ class ExampleClass {}
143143
const ExampleAttribute = null;
144144

145145
/**
146-
* @param {Number} p1
146+
* @param {number} p1
147147
* @param {Object} p2
148-
* @param {String} p2.foo
149-
* @param {String} p2.bar
148+
* @param {string} p2.foo
149+
* @param {string} p2.bar
150150
*/
151151
function destructuredParams(p1, {foo, bar}) {}
152152

tests/test_build/test_build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def test_autofunction_destructured_params(self):
6767
'autofunction_destructured_params',
6868
u'destructuredParams(p1, p2)\n\n'
6969
' Arguments:\n'
70-
' * **p1** (*Number*) --\n\n'
70+
' * **p1** (*number*) --\n\n'
7171
' * **p2** (*Object*) --\n\n'
72-
' * **p2.foo** (*String*) --\n\n'
73-
' * **p2.bar** (*String*) --\n')
72+
' * **p2.foo** (*string*) --\n\n'
73+
' * **p2.bar** (*string*) --\n')
7474

7575
def test_autofunction_default_values(self):
7676
"""Make sure params default values appear in the function definition,

0 commit comments

Comments
 (0)
0