Migrated first reducer to typescript, adding also type for the shared app state

This commit is contained in:
Alejandro Celaya
2020-08-23 09:52:09 +02:00
parent e193a692e8
commit 87e64e5899
8 changed files with 117 additions and 59 deletions

View File

@@ -0,0 +1,11 @@
import { RegularServer } from '../../servers/data';
import { GetState } from '../../container/types';
import ShlinkApiClient from './ShlinkApiClient';
// FIXME Move to ShlinkApiClientBuilder
export type ShlinkApiClientBuilder = (getStateOrSelectedServer: RegularServer | GetState) => ShlinkApiClient;
export interface ShlinkMercureInfo {
token: string;
mercureHubUrl: string;
}