Much better support for frontend field validation

This commit is contained in:
garronej
2021-10-25 21:26:08 +02:00
parent 92fb3b7529
commit 3aad681538
11 changed files with 780 additions and 204 deletions

View File

@ -243,6 +243,12 @@ export type Validators = Partial<{
"person-name-prohibited-characters": Validators.DoIgnoreEmpty & Validators.ErrorMessage;
uri: Validators.DoIgnoreEmpty;
"username-prohibited-characters": Validators.DoIgnoreEmpty & Validators.ErrorMessage;
/** Made up validator that only exists in Keycloakify */
_compareToOther: Validators.DoIgnoreEmpty &
Validators.ErrorMessage & {
name: string;
shouldBe: "equal" | "different";
};
}>;
export declare namespace Validators {
@ -256,8 +262,8 @@ export declare namespace Validators {
export type Range = {
/** "0", "1", "2"... yeah I know, don't tell me */
min?: string;
max?: string;
min?: `${number}`;
max?: `${number}`;
};
}