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

@@ -1 +1,25 @@
import { MercureInfo } from '../mercure/reducers/mercureInfo';
export type ConnectDecorator = (props: string[], actions?: string[]) => any;
export interface ShlinkState {
servers: any;
selectedServer: any;
shortUrlsList: any;
shortUrlsListParams: any;
shortUrlCreationResult: any;
shortUrlDeletion: any;
shortUrlTags: any;
shortUrlMeta: any;
shortUrlEdition: any;
shortUrlVisits: any;
tagVisits: any;
shortUrlDetail: any;
tagsList: any;
tagDelete: any;
tagEdit: any;
mercureInfo: MercureInfo;
settings: any;
}
export type GetState = () => ShlinkState;