doc: Add doc to Ticker.raf

This commit is contained in:
Cole Lawrence 2022-07-16 09:47:31 -04:00
parent a48155f8dc
commit 415e493834

View file

@ -31,6 +31,7 @@ let rafTicker: undefined | Ticker
* external scheduling strategy, e.g. a raf.
*/
export default class Ticker {
/** Get a shared `requestAnimationFrame` ticker. */
static get raf(): Ticker {
if (!rafTicker) {
rafTicker = createRafTicker()