static define()
Defines the `ValidationError` instance
ValidationError.define()
ValidationError.define()public static define<Id extends string>(
problem: string,
fix: string,
id?: Id,
template = ValidationError.template
): ValidationError<Id> {
return new this(problem, fix, id, template);
}Generic type variables
Parameters
template =ValidationError.template
template =ValidationError.templateReturn type
Returns
Example usage
Last updated