This excerpt is extracted from line 107 over here. From my understanding, it indicates:
The function either returns a string directly or a function that accepts
ValidationArguments
as input and then produces a string output.
Given that this is new to me, I just want to confirm if my interpretation is correct?
static getMessage(type: string, isEach: boolean): string|((args: ValidationArguments) => string) {