react-application-core
Version:
A react-based application core for the business applications.
48 lines (47 loc) • 1.67 kB
TypeScript
import { Store } from 'redux';
import { IEffectsAction } from 'redux-effects-promise';
import { IGenericContainer, IGenericContainerProps, IReduxStoreEntity, IStoreProxy } from '../../../definition';
import { ISettingsEntity } from '../../../settings';
export declare class StoreProxy<TStore extends IReduxStoreEntity = IReduxStoreEntity, TProps extends IGenericContainerProps = IGenericContainerProps> implements IStoreProxy {
protected readonly container: IGenericContainer<TProps>;
protected readonly settings: ISettingsEntity;
protected readonly appStore: Store<TStore>;
/**
* @stable [30.03.2020]
* @param {IGenericContainer<TProps extends IGenericContainerProps>} container
*/
constructor(container: IGenericContainer<TProps>);
/**
* @stable [03.10.2019]
* @param {string} type
* @param {TChanges} data
*/
dispatch<TChanges = {}>(type: string, data?: TChanges): void;
/**
* @stable [11.09.2019]
* @param {string} type
* @param {TData} data
*/
dispatchActionByType<TData = {}>(type: string, data?: TData): void;
/**
* @stable [24.03.2020]
* @param {IEffectsAction} action
*/
dispatchPlainAction(action: IEffectsAction): void;
/**
* @stable [11.09.2019]
* @returns {string}
*/
protected get sectionName(): string;
/**
* @stable [03.02.2020]
* @param {string} otherSection
* @returns {string}
*/
protected asSection(otherSection?: string): string;
/**
* @stable [11.09.2019]
* @returns {TProps}
*/
protected get props(): TProps;
}