Преглед изворни кода

Mark defaultValue as optional for useScopeValueSetterOnly (#5695)

GitOrigin-RevId: e42cc48f3762e1a0369fe80ab1b9d7ccb237b3f1
Alf Eaton пре 4 година
родитељ
комит
ed825e3170
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      services/web/frontend/js/shared/hooks/use-scope-value-setter-only.js

+ 1 - 1
services/web/frontend/js/shared/hooks/use-scope-value-setter-only.js

@@ -12,7 +12,7 @@ import _ from 'lodash'
  * the option of passing a function to the setter.
  *
  * @param {string} path - dot '.' path of a property in the Angular scope.
- * @param {any} defaultValue
+ * @param {any} [defaultValue]
  * @returns {[any, function]} - value and setter function tuple.
  */
 export default function useScopeValueSetterOnly(path, defaultValue) {