Skip to content

Commit

Permalink
Better type names
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbadala committed Oct 25, 2023
1 parent 42cba3f commit 8bae273
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions lib/build/recipe/emailpassword/types.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions lib/ts/recipe/emailpassword/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,16 @@ export type NormalisedEnterEmailForm = FeatureBaseConfig & {
formFields: NormalisedFormField[];
};

type FormThemeBaseProps = ThemeBaseProps & {
type NonSignUpFormThemeBaseProps = ThemeBaseProps & {
/*
* Form fields to use in the signup form.
* Omit since, custom inputComponent only part of signup
*/
formFields: Omit<FormFieldThemeProps, "inputComponent">[];

error: string | undefined;
};

export type SignInThemeProps = FormThemeBaseProps & {
export type SignInThemeProps = NonSignUpFormThemeBaseProps & {
recipeImplementation: RecipeInterface;
clearError: () => void;
onError: (error: string) => void;
Expand Down Expand Up @@ -363,7 +363,7 @@ export type ResetPasswordUsingTokenThemeProps = {
userContext?: any;
};

export type EnterEmailProps = FormThemeBaseProps & {
export type EnterEmailProps = NonSignUpFormThemeBaseProps & {
recipeImplementation: RecipeInterface;
error: string | undefined;
clearError: () => void;
Expand All @@ -372,7 +372,7 @@ export type EnterEmailProps = FormThemeBaseProps & {
onBackButtonClicked: () => void;
};

export type SubmitNewPasswordProps = FormThemeBaseProps & {
export type SubmitNewPasswordProps = NonSignUpFormThemeBaseProps & {
recipeImplementation: RecipeInterface;
error: string | undefined;
clearError: () => void;
Expand Down

0 comments on commit 8bae273

Please sign in to comment.