feat(types): add global types
This commit is contained in:
parent
6e253823ba
commit
22ecfdd9a5
6
src/types/global.d.ts
vendored
Normal file
6
src/types/global.d.ts
vendored
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user