mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-15 03:53:51 +00:00
Migrated to typescript the most complex reducer in the project
This commit is contained in:
@@ -3,7 +3,7 @@ import { CreateVisit } from '../types';
|
||||
|
||||
export const CREATE_VISIT = 'shlink/visitCreation/CREATE_VISIT';
|
||||
|
||||
type CreateVisitAction = Action<typeof CREATE_VISIT> & CreateVisit;
|
||||
export type CreateVisitAction = Action<typeof CREATE_VISIT> & CreateVisit;
|
||||
|
||||
export const createNewVisit = ({ shortUrl, visit }: CreateVisit): CreateVisitAction => ({
|
||||
type: CREATE_VISIT,
|
||||
|
||||
Reference in New Issue
Block a user