Make sure that optional args are typed accordingly

This commit is contained in:
Andreas Hocevar
2020-02-20 12:39:31 +01:00
parent d6eb66f083
commit 608d515f1f
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ export function createSnapToZero(opt_tolerance) {
return (
/**
* @param {number|undefined} rotation Rotation.
* @param {boolean} opt_isMoving True if an interaction or animation is in progress.
* @param {boolean=} opt_isMoving True if an interaction or animation is in progress.
* @return {number|undefined} Rotation.
*/
function(rotation, opt_isMoving) {