UNPKG

@bhupinderanand/react-redux-saga-boilerplate

Version:
60 lines (49 loc) 1.2 kB
import React from 'react'; export type AlertPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; export interface AsyncFlow { message: string; status: Status; } export type GenericFunction<T = any> = (...arguments_: any[]) => T; export type Icons = | 'bell-o' | 'bell' | 'bolt' | 'check-circle-o' | 'check-circle' | 'check' | 'dot-circle-o' | 'exclamation-circle' | 'question-circle-o' | 'question-circle' | 'sign-in' | 'sign-out' | 'times-circle-o' | 'times-circle' | 'times'; export type PlainObject<T = any> = Record<string, T>; export interface RouteProps { component: React.ComponentType<any>; exact?: boolean; isAuthenticated: boolean; path: string; to?: string; } export interface Status { ERROR: 'error'; IDLE: 'idle'; READY: 'ready'; RUNNING: 'running'; SUCCESS: 'success'; } export interface SetAppOOptions { query: string; } export interface ShowAlertOptions { icon?: Icons; id?: string; position?: AlertPosition; timeout?: number; variant?: string; } export type Transitions = 'fade' | 'slideDown' | 'slideLeft' | 'slideRight' | 'slideUp';