1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-26 13:44:26 +02:00

refactor(frontend): フロントエンドの型エラー解消 (#16694)

This commit is contained in:
かっこかり
2025-10-23 11:04:27 +09:00
committed by GitHub
parent 4988719a2e
commit d203e1a446
8 changed files with 26 additions and 19 deletions

View File

@@ -5,6 +5,7 @@
import { throttle } from 'throttle-debounce';
import type { Directive } from 'vue';
import type { Awaitable } from '@/types/misc.js';
interface HTMLElementWithObserver extends HTMLElement {
_observer_?: IntersectionObserver;
@@ -31,4 +32,4 @@ export const appearDirective = {
unmounted(src) {
if (src._observer_) src._observer_.disconnect();
},
} as Directive<HTMLElementWithObserver, () => void>;
} as Directive<HTMLElementWithObserver, (() => Awaitable<void>) | null | undefined>;