Created
May 25, 2019 13:37
-
-
Save itayod/5a569a2cc30dbd6c63fa02eafd8daf7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function metaReducer(reducer: ActionReducer<any>) : ActionReducer<any> { | |
// a function with the exact same signature of a reducer | |
return function(state: any, action: Action) { | |
return reducer(state, action); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment