@@ -494,7 +494,7 @@ class FeatureToggles {
494494 *
495495 * @param {string } featureKey feature key
496496 * @param {string|number|boolean|null } value intended value
497- * @param {Map<string, string> } [scopeMap] optional scope restrictions
497+ * @param {Object } [scopeMap] optional scope restrictions
498498 * @returns {Promise<Array<ValidationError>> } validation errors if any are found or an empty array otherwise
499499 */
500500 async validateFeatureValue ( featureKey , value , scopeMap = undefined ) {
@@ -988,7 +988,7 @@ class FeatureToggles {
988988 * const resultForTenant = getFeatureValue(FEATURE_VALUE_KEY, { tenant: "tenant123" });
989989 *
990990 * @param {string } featureKey valid feature key
991- * @param {Map<string, string> } [scopeMap] optional scope restrictions
991+ * @param {Object } [scopeMap] optional scope restrictions
992992 * @returns {string|number|boolean|null }
993993 */
994994 getFeatureValue ( featureKey , scopeMap = undefined ) {
@@ -1305,7 +1305,7 @@ class FeatureToggles {
13051305 *
13061306 * @param {string } featureKey valid feature key
13071307 * @param {string|number|boolean|null } newValue new value of valid type or null for deletion
1308- * @param {Map<string, string> } [scopeMap] optional object with scope restrictions
1308+ * @param {Object } [scopeMap] optional scope restrictions
13091309 * @param {ChangeOptions } [options] optional extra change options
13101310 * @returns {Promise<Array<ValidationError> | void> }
13111311 */
@@ -1333,7 +1333,7 @@ class FeatureToggles {
13331333 *
13341334 * @param {boolean | number | string | null } newValue
13351335 * @param {boolean | number | string } oldValue
1336- * @param {Map<string, string> } [scopeMap] optional value in case a scopeMap
1336+ * @param {Object } [ scopeMap] optional scope restrictions
13371337 * @param {ChangeOptions } [options] optional switch to clear all sub scopes
13381338 */
13391339 /**
@@ -1382,7 +1382,7 @@ class FeatureToggles {
13821382 * scopeKey for reference.
13831383 *
13841384 * @param {boolean | number | string } newValue
1385- * @param {Map<string, string> } [scopeMap] optional scopeMap for reference
1385+ * @param {Object } [scopeMap] optional scopeMap for reference
13861386 * @param {string } [scopeKey] optional scopeKey for reference
13871387 * @returns {undefined | ValidationError | Array<ValidationError> } in case of failure a ValidationError, or an array
13881388 * of ValidationErrors, otherwise undefined
0 commit comments