static define()
Defines the `ValidationError` instance
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
Idextendsstring
Parameters
problem:string
fix:string
id?:Id
template =ValidationError.template
Return type
ValidationError<Id>
Returns
Example usage
Last updated