import { AnyAction } from "redux" ; import { SceneReducer } from "../types" ; export default function sceneReducerWrapper < S > ( srcReducer ) { return function ( state , action , isSceneAction ) { if ( isSceneAction || ( action . type && action . type . indexOf ( "@@" ) === 0 ) ) { return srcReducer ( state , action , isSceneAction ) ; } else { return state ; } } ; }