no implicit any - force return

add some comments
This commit is contained in:
2021-03-19 19:10:13 +01:00
parent 5dbbd34d3a
commit f2ec5b644d
5 changed files with 7 additions and 32 deletions

View File

@ -60,7 +60,7 @@ class App extends React.Component<{}, state> {
});
// set the hook to load passwordfield on global func call
GlobalInfos.loadPasswordPage = (callback?: () => void) => {
GlobalInfos.loadPasswordPage = (callback?: () => void): void => {
// try refreshing the token
refreshAPIToken((err) => {
if (err !== '') {