diff --git a/src/Index.ts b/src/Index.ts index 93bd5233..43821209 100644 --- a/src/Index.ts +++ b/src/Index.ts @@ -10,7 +10,7 @@ import Easing from './Easing' import Group from './Group' import Interpolation from './Interpolation' -import now, { setNow } from './Now' +import now, {setNow} from './Now' import Sequence from './Sequence' import Tween from './Tween' import VERSION from './Version' @@ -273,7 +273,22 @@ const update = TWEEN.update.bind(TWEEN) // NOTE! Make sure both lists of exports below are kept in sync: -export {Easing, Group, Interpolation, now, setNow, Sequence, nextId, Tween, VERSION, getAll, removeAll, add, remove, update} +export { + Easing, + Group, + Interpolation, + now, + setNow, + Sequence, + nextId, + Tween, + VERSION, + getAll, + removeAll, + add, + remove, + update, +} const exports = { Easing, diff --git a/src/Now.ts b/src/Now.ts index 7a3d935b..c3b4c390 100644 --- a/src/Now.ts +++ b/src/Now.ts @@ -1,11 +1,11 @@ let _nowFunc: Function = () => performance.now() const now = (): number => { - return _nowFunc() + return _nowFunc() } export function setNow(nowFunction: Function) { - _nowFunc = nowFunction + _nowFunc = nowFunction } export default now