Compare commits

...

2 Commits

Author SHA1 Message Date
ef263a85b4 1.0.11 2019-04-30 10:17:29 +02:00
315156aac5 fix(core): update 2019-04-30 10:17:29 +02:00
3 changed files with 8 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartstate",
"version": "1.0.10",
"version": "1.0.11",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartstate",
"version": "1.0.10",
"version": "1.0.11",
"private": false,
"description": "a package that handles state in a good way",
"main": "dist/index.js",

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