#38: Implement messagesPerField existsError and get

This commit is contained in:
garronej
2021-10-08 01:58:15 +02:00
parent 392377bf2d
commit 92946ef6bb
3 changed files with 50 additions and 4 deletions

View File

@ -103,7 +103,7 @@ export declare namespace KcContextBase {
registrationAction: string;
};
messagesPerField: {
printIfExists<T>(
printIfExists: <T>(
key:
"userLabel" |
"username" |
@ -113,7 +113,9 @@ export declare namespace KcContextBase {
"password" |
"password-confirm",
x: T
): T | undefined;
)=> T | undefined;
existsError: (key: string)=> boolean;
get: (key: string) => string;
};
register: {
formData: {