Fixed most of TypeScript errors for TS 3.1.2

This commit is contained in:
2018-10-10 17:42:23 +09:00
parent d1987e9c60
commit 1829c2cab9
6 changed files with 14 additions and 106 deletions

View File

@ -1,6 +1,7 @@
export function requestIdleCallback(func: Function) {
if("requestIdleCallback" in window) {
window["requestIdleCallback"](func)
let requestIdleCallback = window["requestIdleCallback"] as Function
requestIdleCallback(func)
} else {
func()
}