import Crumb from './Crumb' ; import StateInfo from './StateInfo' ; class State implements StateInfo { key : string ; defaults : any = { } ; defaultTypes : any = { } ; formattedDefaults : any = { } ; formattedArrayDefaults : { [ index ] : string [ ] ; } = { } ; title : string ; route : string | string [ ] ; trackCrumbTrail : boolean = false ; crumbTrailKey : string ; trackTypes : boolean = true ; [ extras ] : any ; unloading ( state , data , url , unload , history ) { unload ( ) ; } ; navigating ( data , url , navigate , history ) { navigate ( ) ; } ; dispose ( ) { } ; navigated ( data , asyncData ) { } ; urlEncode ( state , key , val , queryString , index ? ) { return encodeURIComponent ( val ) ; } urlDecode ( state , key , val , queryString ) { return decodeURIComponent ( val ) ; } validate ( data ) { return true ; } truncateCrumbTrail ( state , data , crumbs ) { return crumbs ; } } export default State ;