import { Action } from 'redux-actions' ; import { createDefinition } from '../../state/createDefinition' ; type State = any ; export default createDefinition ( { reducers : { clear : ( ) : State => undefined , set : ( state , { payload } ) : State => payload , } , defaultState : undefined , selectors : { get : ( state ) => state , isSet : ( state ) => ! ! state , } , } ) ;