mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Upgrade ts to the latest version and fix type errors
This commit is contained in:
@@ -406,7 +406,7 @@ class PanelTransition extends React.PureComponent<Props, State> {
|
||||
});
|
||||
};
|
||||
|
||||
onGoBack: MouseEventHandler = (event): void => {
|
||||
onGoBack: MouseEventHandler<HTMLButtonElement> = (event): void => {
|
||||
event.preventDefault();
|
||||
authFlow.goBack();
|
||||
};
|
||||
|
||||
@@ -680,7 +680,7 @@ function validationErrorsHandler(
|
||||
repeatUrl?: string,
|
||||
): (
|
||||
resp: Resp<{
|
||||
errors?: Record<string, string>;
|
||||
errors?: Record<string, string | ValidationError>;
|
||||
data?: Record<string, any>;
|
||||
}>,
|
||||
) => Promise<never> {
|
||||
|
||||
Reference in New Issue
Block a user