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.
65 lines
1.2 KiB
65 lines
1.2 KiB
import { AnyAction } from 'redux'
|
|
import { ThunkDispatch, ThunkAction } from 'redux-thunk'
|
|
import { AppState } from './store'
|
|
|
|
export type FetchMethods = 'get' | 'post' | 'put' | 'delete'
|
|
|
|
export interface FetchOptions {
|
|
path: string
|
|
method?: FetchMethods
|
|
body?: object
|
|
headers?: HeadersInit
|
|
}
|
|
|
|
export interface ClassDictionary {
|
|
[name: string]: boolean
|
|
}
|
|
|
|
export interface Tab {
|
|
id: string
|
|
label: string
|
|
}
|
|
|
|
export interface AvailabilityResponse {
|
|
id: string
|
|
available: boolean
|
|
}
|
|
|
|
export interface SasResponse {
|
|
sas: string
|
|
id: string
|
|
}
|
|
|
|
export interface LevelItem {
|
|
label?: string
|
|
content: string
|
|
}
|
|
|
|
export interface Settings {
|
|
[key: string]: any
|
|
}
|
|
|
|
export interface Theme {
|
|
primary: string
|
|
primaryAlternate: string
|
|
secondary: string
|
|
backgroundPrimary: string
|
|
backgroundSecondary: string
|
|
text: string
|
|
red: string
|
|
green: string
|
|
blue: string
|
|
}
|
|
|
|
export interface ThemeCollection {
|
|
[name: string]: {
|
|
[scheme: string]: Theme
|
|
}
|
|
}
|
|
|
|
export * from './config'
|
|
export * from './entities'
|
|
export * from './store'
|
|
|
|
export type AppThunkDispatch = ThunkDispatch<AppState, void, AnyAction>
|
|
export type AppThunkAction<T = void> = ThunkAction<Promise<T>, AppState, void, AnyAction>
|