async acquireToken(request: AuthenticationParameters, redirect: any) {
return msalApp.acquireTokenSilent(request).catch(error => {
if (requiresInteraction(error.errorCode)) {
return redirect
} else {
console.error('Non-interactive error:', error.errorCode)
}
});
}
Ошибка:
Argument of type '(error: any) => void | Promise<AuthResponse>' is not assignable to parameter of type '(reason: any) => AuthResponse | PromiseLike<AuthResponse>'.
Как сделать тип, присваиваемый типу параметра, который он хочет?