react-application-core
Version:
A react-based application core for the business applications.
30 lines (29 loc) • 858 B
TypeScript
import { IEffectsAction } from 'redux-effects-promise';
import { IChangesWrapper, IEntity, IEntityIdTWrapper, IMergeStrategyWrapper } from '../definitions.interface';
import { IFluxEntity } from './flux-definition.interface';
/**
* @entity
* @stable [23.09.2020]
*/
export interface IModifyEntity<TEntity = IEntity> extends IEntityIdTWrapper, IChangesWrapper<TEntity>, IMergeStrategyWrapper<EntityMergeStrategiesEnum> {
}
/**
* @flux-entity
* @stable [23.09.2020]
*/
export interface IFluxModifyEntity<TEntity = IEntity> extends IFluxEntity<IModifyEntity<TEntity>> {
}
/**
* @enum
* @stable [10.09.2020]
*/
export declare enum EntityMergeStrategiesEnum {
MERGE = 0,
OVERRIDE = 1
}
/**
* @stable [10.09.2020]
*/
export interface IModifyEntityFactory {
makeInstance(action: IEffectsAction): IModifyEntity;
}