feat(): typed @ionic/docs (#19547)

This commit is contained in:
Manu MA
2019-10-08 20:35:45 +02:00
committed by GitHub
parent bb32cea5c9
commit 3c4e65ba97
6 changed files with 14 additions and 13 deletions

View File

@ -19,14 +19,6 @@ export const raf = (h: any) => {
return setTimeout(h);
};
export const rIC = (callback: () => void) => {
if ('requestIdleCallback' in window) {
(window as any).requestIdleCallback(callback);
} else {
setTimeout(callback, 32);
}
};
export const hasShadowDom = (el: HTMLElement) => {
return !!el.shadowRoot && !!(el as any).attachShadow;
};