abstract class UpdateStrategy { protected callback : ( ) => void ; protected interval : number ; public setUpdater ( callback , interval ) { this . callback = callback ; this . interval = interval ; } public abstract run ( ) ; public abstract stop ( ) ; } export default UpdateStrategy ;