From 22ecfdd9a5665ba3dc81cf230979b528733253ce Mon Sep 17 00:00:00 2001 From: Walidoux Date: Sun, 23 Apr 2023 20:14:32 +0100 Subject: [PATCH] feat(types): add global types --- src/types/global.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/types/global.d.ts diff --git a/src/types/global.d.ts b/src/types/global.d.ts new file mode 100644 index 0000000..37ea629 --- /dev/null +++ b/src/types/global.d.ts @@ -0,0 +1,6 @@ +export type StateTypes = 'idle' | 'loading' | 'error' | 'success' +export type ConvertionHandler = (message: string, state: StateTypes) => void + +export interface KeyValuePairs { + [index: string]: string +}