Skip to content

Commit

Permalink
feat(PAL): requestAnimationFrame and performance APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdanyow committed Dec 11, 2015
1 parent 6e00ac3 commit 09177bf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/index.js
Expand Up @@ -55,6 +55,13 @@ interface Feature {
*/
export const FEATURE: Feature = {};

/**
* The runtime's performance API.
*/
interface Performance {
now(): number;
}

/**
* Represents the core APIs of the runtime environment.
*/
Expand All @@ -76,6 +83,15 @@ interface Platform {
*/
history: Object;
/**
* The runtime's performance API
*/
performance: Performance;
/**
* Registers a function to call when the system is ready to update (repaint) the display.
* @param callback The function to call.
*/
requestAnimationFrame(callback: (animationFrameStart: number) => void): number;
/**
* The runtime's XMLHttpRequest API.
*/
XMLHttpRequest: XMLHttpRequest;
Expand Down

0 comments on commit 09177bf

Please sign in to comment.