@mapbox/mapbox-gl-style-spec 14.20.0 → 14.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,12 +164,10 @@ function validatePromoteId({key, value}: PromoteIdValidatorOptions) {
164
164
  expression.value.forEach((err) => {
165
165
  errors.push(new ValidationError(`${key}${err.key}`, null, `${err.message}`));
166
166
  });
167
+ return errors;
167
168
  }
168
169
 
169
- // @ts-expect-error - TS2339: Property 'expression' does not exist on type 'ParsingError[] | StyleExpression'.
170
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
171
170
  const parsed = expression.value.expression;
172
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
173
171
  const onlyFeatureDependent = isConstant.isGlobalPropertyConstant(parsed, ['zoom', 'heatmap-density', 'line-progress', 'raster-value', 'sky-radial-progress', 'accumulated', 'is-supported-script', 'pitch', 'distance-from-center', 'measure-light', 'raster-particle-speed']);
174
172
  if (!onlyFeatureDependent) {
175
173
  errors.push(new ValidationError(`${key}`, null, 'promoteId expression should be only feature dependent'));