fix(core): update

This commit is contained in:
Philipp Kunz 2019-04-30 10:17:29 +02:00
parent f90a61b38b
commit 315156aac5

View File

@ -5,7 +5,7 @@ import { StatePart } from './smartstate.classes.statepart';
* Smartstate takes care of providing state
*/
export class Smartstate<StatePartNameType> {
statePartMap: { [key: string]: StatePart<StatePartNameType, any> } = {};
public statePartMap: { [key: string]: StatePart<StatePartNameType, any> } = {};
constructor() {}
@ -30,6 +30,11 @@ export class Smartstate<StatePartNameType> {
}
}
/**
* creates a statepart
* @param statePartName
* @param initialPayloadArg
*/
private createStatePart<PayloadType>(
statePartName: StatePartNameType,
initialPayloadArg: PayloadType