mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
c9ad411d8e
* Fix basic noImplicitAny errors * noImplicitAny HeatmapCtrl * Update error limit
18 lines
421 B
TypeScript
18 lines
421 B
TypeScript
declare var global: NodeJS.Global;
|
|
|
|
(global as any).requestAnimationFrame = (callback: any) => {
|
|
setTimeout(callback, 0);
|
|
};
|
|
|
|
(Promise.prototype as any).finally = function(onFinally: any) {
|
|
return this.then(
|
|
/* onFulfilled */
|
|
(res: any) => Promise.resolve(onFinally()).then(() => res),
|
|
/* onRejected */
|
|
(err: any) =>
|
|
Promise.resolve(onFinally()).then(() => {
|
|
throw err;
|
|
})
|
|
);
|
|
};
|