import { ITimelineModel } from '../core/types' ; import { update } from './update' ; import { IReducer , IReducerContext } from '../core/types' ; import { _ } from '../utils/constants' ; export const updateTime = ( model , time , ctx ) => { const currentTime = + time ; model . time = isFinite ( currentTime ) ? currentTime : model . rate < 0 ? model . duration : 0 ; update ( model , _ , ctx ) ; } ;