mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
refactor: rename lazy.ts to lazyLoad.ts
This commit is contained in:
@@ -7,7 +7,7 @@ import App from './views/App.vue'
|
||||
import { setupApp } from '~/logic/common-setup'
|
||||
import { SVG_ICONS } from '~/utils/svgIcons'
|
||||
import { delay, injectCSS } from '~/utils/main'
|
||||
import { runWhenIdle } from '~/utils/lazy'
|
||||
import { runWhenIdle } from '~/utils/lazyLoad'
|
||||
import { settings } from '~/logic'
|
||||
|
||||
const currentUrl = document.URL
|
||||
|
||||
@@ -28,6 +28,7 @@ interface IDisposable {
|
||||
* [setTimeout]: https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line import/no-mutable-exports
|
||||
export let runWhenIdle: (callback: (idle: IdleDeadline) => void, timeout?: number) => IDisposable
|
||||
|
||||
declare function requestIdleCallback(callback: (args: IdleDeadline) => void, options?: { timeout: number }): number
|
||||
Reference in New Issue
Block a user