@sanity/desk-tool
Version:
Tool for managing all sorts of content in a structured manner
15 lines • 505 B
TypeScript
/**
* @internal
*/
export declare function raf(fn: () => void): () => void;
/**
* This is a function for calling a callback insid a double `requestAnimationFrame` (RAF).
* This is useful for reliably triggering animations.
*
* The reason for using a double RAF is a common "bug" in browsers.
* See: https://stackoverflow.com/questions/44145740/how-does-double-requestanimationframe-work
*
* @internal
*/
export declare function raf2(fn: () => void): () => void;
//# sourceMappingURL=raf.d.ts.map