typings: Get requestIdleCallback from DefinitelyTyped.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-03-03 18:13:26 -08:00
parent f91e95647a
commit 8f810481e3
3 changed files with 7 additions and 3 deletions

3
typings.d.ts vendored
View File

@@ -9,9 +9,6 @@ interface PageParamsObject {
}
declare var page_params: PageParamsObject;
// since requestIdleCallback didn't make it into lib.dom.d.ts yet
declare function requestIdleCallback(callback: Function, options?: object): void;
// Patch Notification object so we can implement our side
// of Notification classes which we export into zulip side through
// preload.js; if we don't do his extending Notification will throw error.