Upgrade ts to the latest version and fix type errors

This commit is contained in:
SleepWalker
2020-05-20 19:59:06 +03:00
parent 2d903f96fc
commit 29326519b8
16 changed files with 37 additions and 37 deletions

View File

@@ -406,7 +406,7 @@ class PanelTransition extends React.PureComponent<Props, State> {
});
};
onGoBack: MouseEventHandler = (event): void => {
onGoBack: MouseEventHandler<HTMLButtonElement> = (event): void => {
event.preventDefault();
authFlow.goBack();
};

View File

@@ -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> {