Avoid using tsafe utils to avoid forcing user to install tsafe
This commit is contained in:
@ -5,10 +5,9 @@ import { clsx } from "../../tools/clsx";
|
|||||||
import { useCallbackFactory } from "../../tools/useCallbackFactory";
|
import { useCallbackFactory } from "../../tools/useCallbackFactory";
|
||||||
import { useFormValidationSlice } from "../../useFormValidationSlice";
|
import { useFormValidationSlice } from "../../useFormValidationSlice";
|
||||||
import type { I18nBase } from "../../i18n";
|
import type { I18nBase } from "../../i18n";
|
||||||
import type { Param0 } from "tsafe/Param0";
|
|
||||||
|
|
||||||
export type UserProfileFormFieldsProps = {
|
export type UserProfileFormFieldsProps = {
|
||||||
kcContext: Param0<typeof useFormValidationSlice>["kcContext"];
|
kcContext: Parameters<typeof useFormValidationSlice>[0]["kcContext"];
|
||||||
i18n: I18nBase;
|
i18n: I18nBase;
|
||||||
} & KcProps &
|
} & KcProps &
|
||||||
Partial<Record<"BeforeField" | "AfterField", (props: { attribute: Attribute }) => JSX.Element | null>> & {
|
Partial<Record<"BeforeField" | "AfterField", (props: { attribute: Attribute }) => JSX.Element | null>> & {
|
||||||
|
Reference in New Issue
Block a user