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 +}