refactor: rename lazy.ts to lazyLoad.ts

This commit is contained in:
Hakadao
2024-01-03 00:37:51 +08:00
parent 8c320fc428
commit eacb4d8af9
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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