You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
449 B
16 lines
449 B
// @flow
|
|
|
|
import validateExpression from './validate_expression.js';
|
|
import validateString from './validate_string.js';
|
|
|
|
import type {ValidationOptions} from './validate.js';
|
|
import type ValidationError from '../error/validation_error.js';
|
|
|
|
export default function validateImage(options: ValidationOptions): Array<ValidationError> {
|
|
if (validateString(options).length === 0) {
|
|
return [];
|
|
}
|
|
|
|
return validateExpression(options);
|
|
}
|