Fix build for real

This commit is contained in:
garronej
2023-03-18 16:17:33 +01:00
parent 4f0b1688db
commit 43e4dd6bb6
10 changed files with 154 additions and 102 deletions

View File

@ -14,7 +14,7 @@ import type { I18nBase as I18n } from "../i18n";
*/
export function useFormValidation(params: {
kcContext: {
messagesPerField: Pick<KcContext.Common.Login["messagesPerField"], "existsError" | "get">;
messagesPerField: Pick<KcContext.Common["messagesPerField"], "existsError" | "get">;
profile: {
attributes: Attribute[];
};
@ -187,7 +187,7 @@ export function useFormValidation(params: {
/** Expect to be used in a component wrapped within a <I18nProvider> */
function useGetErrors(params: {
kcContext: {
messagesPerField: Pick<KcContext.Common.Login["messagesPerField"], "existsError" | "get">;
messagesPerField: Pick<KcContext.Common["messagesPerField"], "existsError" | "get">;
profile: {
attributes: { name: string; value?: string; validators: Validators }[];
};