maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
14 lines (10 loc) • 337 B
text/typescript
import ValidationError from '../error/validation_error';
export default function validateConstants(options) {
const key = options.key;
const constants = options.value;
if (constants) {
return [new ValidationError(key, constants, 'constants have been deprecated as of v8')];
} else {
return [];
}
}