mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
add animationframe type definition file
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// <reference path="animationframe.d.ts"/>
|
||||
module AnimationFrameTests {
|
||||
var animation = new AnimationFrame();
|
||||
function frame() {
|
||||
animation.request(frame);
|
||||
}
|
||||
|
||||
animation.request(frame);
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// Type definitions for animation-frame 0.1.7
|
||||
// Project: https://github.com/kof/animation-frame
|
||||
// Definitions by: Qinfeng Chen <https://github.com/qinfchen>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface AnimationFrame {
|
||||
new(): AnimationFrame;
|
||||
request(callback: () => void): void;
|
||||
}
|
||||
|
||||
declare var AnimationFrame: AnimationFrame;
|
||||
|
||||
Reference in New Issue
Block a user