Type for delta time in IFrame

This commit is contained in:
Alexey Kalmakov 2019-10-05 23:36:09 +03:00
parent cfd40b2083
commit 8816aa5154
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import { glob } from './Global';
import { Layer } from './Layer';
import { IFrame, AnimationFn } from './types';
var now = (function() {
var now = (function(): () => number {
if (glob.performance && glob.performance.now) {
return function() {
return glob.performance.now();

View File

@ -21,7 +21,7 @@ export interface IRect {
export interface IFrame {
time: number;
timeDiff: number;
lastTime: any;
lastTime: number;
frameRate: number;
}