mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
Type for delta time in IFrame
This commit is contained in:
@@ -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();
|
||||
|
@@ -21,7 +21,7 @@ export interface IRect {
|
||||
export interface IFrame {
|
||||
time: number;
|
||||
timeDiff: number;
|
||||
lastTime: any;
|
||||
lastTime: number;
|
||||
frameRate: number;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user