1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Consistently use number for numeric data types in JSDoc comments

Sometimes we also used `Number` and `integer`, but `number` is what
the JSDoc documentation recommends.
This commit is contained in:
Tim van der Meij 2019-10-12 15:54:17 +02:00
parent ff37cdb5d7
commit e75991b49e
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
5 changed files with 16 additions and 16 deletions

View file

@ -530,7 +530,7 @@ class AnnotationBorderStyle {
*
* @public
* @memberof AnnotationBorderStyle
* @param {integer} width - The width.
* @param {number} width - The width.
* @param {Array} rect - The annotation `Rect` entry.
*/
setWidth(width, rect = [0, 0, 0, 0]) {
@ -642,7 +642,7 @@ class AnnotationBorderStyle {
*
* @public
* @memberof AnnotationBorderStyle
* @param {integer} radius - The horizontal corner radius
* @param {number} radius - The horizontal corner radius.
*/
setHorizontalCornerRadius(radius) {
if (Number.isInteger(radius)) {
@ -655,7 +655,7 @@ class AnnotationBorderStyle {
*
* @public
* @memberof AnnotationBorderStyle
* @param {integer} radius - The vertical corner radius
* @param {number} radius - The vertical corner radius.
*/
setVerticalCornerRadius(radius) {
if (Number.isInteger(radius)) {