Migrated to typescript the most complex reducer in the project

This commit is contained in:
Alejandro Celaya
2020-08-27 18:31:56 +02:00
parent f3a2535e2f
commit 83531666de
11 changed files with 182 additions and 133 deletions

View File

@@ -1,4 +1,4 @@
import { Nullable } from '../../utils/utils';
import { Nullable, OptionalString } from '../../utils/utils';
export interface ShortUrlData {
longUrl: string;
@@ -33,3 +33,8 @@ export interface ShortUrlModalProps {
isOpen: boolean;
toggle: () => void;
}
export interface ShortUrlIdentifier {
shortCode: string;
domain: OptionalString;
}