Add @ts-ignore lines for strictFunctionTypes

merge-requests/1143/head
Alex Gleason 2022-03-24 12:26:27 -05:00
rodzic 67471638c3
commit 84d7d2ee38
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
3 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -59,6 +59,7 @@ export function fetchInstance() {
return api(getState).get('/api/v1/instance').then(({ data: instance }: { data: Record<string, any> }) => {
dispatch({ type: INSTANCE_FETCH_SUCCESS, instance });
if (needsNodeinfo(instance)) {
// @ts-ignore: ???
dispatch(fetchNodeinfo()); // Pleroma < 2.1 backwards compatibility
}
}).catch(error => {
@ -73,7 +74,9 @@ export function loadInstance() {
return (dispatch: AppDispatch, getState: () => RootState) => {
const host = getHost(getState());
// @ts-ignore: ???
return dispatch(rememberInstance(host)).finally(() => {
// @ts-ignore: ???
return dispatch(fetchInstance());
});
};

Wyświetl plik

@ -46,6 +46,7 @@ const WhoToFollowPanel = ({ limit }: IWhoToFollowPanel) => {
{suggestionsToRender.map((suggestion: ImmutableMap<string, any>) => (
<AccountContainer
key={suggestion.get('account')}
// @ts-ignore: TS thinks `id` is passed to <Account>, but it isn't
id={suggestion.get('account')}
actionIcon={require('@tabler/icons/icons/x.svg')}
actionTitle={intl.formatMessage(messages.dismissSuggestion)}

Wyświetl plik

@ -128,6 +128,7 @@ export const StateRecord = ImmutableRecord(
}, {}),
);
// @ts-ignore: This type is fine but TS thinks it's wrong
const appReducer = combineReducers(reducers, StateRecord);
// Clear the state (mostly) when the user logs out