From 42cba3f43ef6cc9890bea34f917143ba74f301cc Mon Sep 17 00:00:00 2001 From: amitbadala Date: Wed, 25 Oct 2023 14:31:50 +0530 Subject: [PATCH] Minor cleanup of types --- lib/build/recipe/emailpassword/types.d.ts | 7 +++---- lib/ts/recipe/emailpassword/types.ts | 9 +-------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/lib/build/recipe/emailpassword/types.d.ts b/lib/build/recipe/emailpassword/types.d.ts index c1e4cb6f6..83d942b19 100644 --- a/lib/build/recipe/emailpassword/types.d.ts +++ b/lib/build/recipe/emailpassword/types.d.ts @@ -78,7 +78,9 @@ export declare type NormalisedSignInAndUpFeatureConfig = { signInForm: NormalisedSignInFormFeatureConfig; }; export declare type SignUpFormFeatureUserInput = FeatureBaseConfig & { - formFields?: FormFieldSignUpConfig[]; + formFields?: (FormField & { + inputComponent?: React.FC; + })[]; privacyPolicyLink?: string; termsOfServiceLink?: string; }; @@ -96,9 +98,6 @@ export declare type NormalisedSignInFormFeatureConfig = NormalisedBaseConfig & { formFields: NormalisedFormField[]; }; export declare type FormFieldSignInConfig = FormFieldBaseConfig; -export declare type FormFieldSignUpConfig = FormField & { - inputComponent?: React.FC; -}; export declare type ResetPasswordUsingTokenUserInput = { disableDefaultUI?: boolean; submitNewPasswordForm?: FeatureBaseConfig; diff --git a/lib/ts/recipe/emailpassword/types.ts b/lib/ts/recipe/emailpassword/types.ts index a34397de0..27ce38dc4 100644 --- a/lib/ts/recipe/emailpassword/types.ts +++ b/lib/ts/recipe/emailpassword/types.ts @@ -135,7 +135,7 @@ export type SignUpFormFeatureUserInput = FeatureBaseConfig & { /* * Form fields for SignUp. */ - formFields?: FormFieldSignUpConfig[]; + formFields?: (FormField & { inputComponent?: React.FC })[]; /* * Privacy policy link for sign up form. @@ -181,13 +181,6 @@ export type NormalisedSignInFormFeatureConfig = NormalisedBaseConfig & { export type FormFieldSignInConfig = FormFieldBaseConfig; -export type FormFieldSignUpConfig = FormField & { - /* - * Ability to add custom components - */ - inputComponent?: React.FC; -}; - export type ResetPasswordUsingTokenUserInput = { /* * Disable default implementation with default routes.