Migrated ShlinkApiClient to TS

This commit is contained in:
Alejandro Celaya
2020-08-29 19:51:14 +02:00
parent ebd7a76896
commit ef630af154
9 changed files with 198 additions and 134 deletions

View File

@@ -55,7 +55,7 @@ export const loadMercureInfo = (buildShlinkApiClient: ShlinkApiClientBuilder) =>
try {
const result = await mercureInfo();
dispatch<Action<ShlinkMercureInfo>>({ type: GET_MERCURE_INFO, ...result });
dispatch<GetMercureInfoAction>({ type: GET_MERCURE_INFO, ...result });
} catch (e) {
dispatch({ type: GET_MERCURE_INFO_ERROR });
}