mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-20 12:55:45 +02:00
refactor8frontend9: anyを除去 (#16778)
This commit is contained in:
@@ -7,7 +7,7 @@ import type { Directive } from 'vue';
|
||||
import { getBgColor } from '@/utility/get-bg-color.js';
|
||||
import { globalEvents } from '@/events.js';
|
||||
|
||||
const handlerMap = new WeakMap<any, any>();
|
||||
const handlerMap = new WeakMap<HTMLElement, () => void>();
|
||||
|
||||
export const adaptiveBorderDirective = {
|
||||
mounted(src) {
|
||||
|
||||
@@ -119,9 +119,9 @@ export const userPreviewDirective = {
|
||||
|
||||
// TODO: 新たにプロパティを作るのをやめMapを使う
|
||||
// ただメモリ的には↓の方が省メモリかもしれないので検討中
|
||||
const self = (el as any)._userPreviewDirective_ = {} as any;
|
||||
|
||||
self.preview = new UserPreview(el, binding.value);
|
||||
el._userPreviewDirective_ = {
|
||||
preview: new UserPreview(el, binding.value),
|
||||
};
|
||||
},
|
||||
|
||||
unmounted(el, binding) {
|
||||
|
||||
Reference in New Issue
Block a user