You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
976 B
47 lines
976 B
import { AnyAction } from 'redux'
|
|
import { ThunkDispatch, ThunkAction } from 'redux-thunk'
|
|
import { AppState } from './store'
|
|
|
|
export type FetchMethods = 'get' | 'post' | 'put'
|
|
|
|
export interface FetchOptions {
|
|
path: string
|
|
method?: FetchMethods
|
|
body?: object
|
|
headers?: HeadersInit
|
|
}
|
|
|
|
export interface ClassDictionary {
|
|
[name: string]: boolean
|
|
}
|
|
|
|
export {
|
|
Entity,
|
|
Group,
|
|
User,
|
|
EntityCollection,
|
|
EntityStore,
|
|
} from './entities'
|
|
|
|
export {
|
|
NotificationType,
|
|
FormValue,
|
|
FormNotification,
|
|
APIRequest,
|
|
APIRequestCollection,
|
|
Notification,
|
|
AuthenticationState,
|
|
MenuState,
|
|
FormField,
|
|
Form,
|
|
FormsState,
|
|
DirectoryState,
|
|
RequestsState,
|
|
NotificationsState,
|
|
EntitiesState,
|
|
RegistrationState,
|
|
AppState,
|
|
} from './store'
|
|
|
|
export type AppThunkDispatch = ThunkDispatch<AppState, void, AnyAction>
|
|
export type AppThunkAction<T = void> = ThunkAction<Promise<T>, AppState, void, AnyAction>
|