mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
added no-angle-bracket-type-assertion rule and updatet files to follow rule (#13115)
This commit is contained in:
committed by
Torkel Ödegaard
parent
7837ee4466
commit
b8d82df97e
@@ -1,10 +1,10 @@
|
||||
declare var global: NodeJS.Global;
|
||||
|
||||
(<any>global).requestAnimationFrame = callback => {
|
||||
(global as any).requestAnimationFrame = callback => {
|
||||
setTimeout(callback, 0);
|
||||
};
|
||||
|
||||
(<any>Promise.prototype).finally = function(onFinally) {
|
||||
(Promise.prototype as any).finally = function(onFinally) {
|
||||
return this.then(
|
||||
/* onFulfilled */
|
||||
res => Promise.resolve(onFinally()).then(() => res),
|
||||
|
||||
Reference in New Issue
Block a user