Files
starface-outlook-sync-addin/node_modules/@fluentui/utilities/lib-amd/safeRequestAnimationFrame.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

9 lines
458 B
TypeScript

import * as React from 'react';
/**
* Generates a function to be attached to a React component, which can be called
* as a replacement to RAF. In-flight async calls will be auto canceled if the component
* is unmounting before the async code is executed, preventing bugs where code
* accesses things within the component after being unmounted.
*/
export declare const safeRequestAnimationFrame: (component: React.Component) => ((cb: Function) => void);