feat(types): add global types

This commit is contained in:
Walid 2023-04-23 20:14:32 +01:00
parent 6e253823ba
commit 22ecfdd9a5
Signed by: Walidoux
GPG Key ID: CCF21881FE8BEBAF

6
src/types/global.d.ts vendored Normal file
View File

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