diff --git a/components/tools/mocks/MkNote.vue b/components/tools/mocks/MkNote.vue index 7389a050..7b746f06 100644 --- a/components/tools/mocks/MkNote.vue +++ b/components/tools/mocks/MkNote.vue @@ -40,10 +40,11 @@ import ReplyIco from 'bi/arrow-return-left.svg'; import RenoteIco from 'bi/repeat.svg'; import ReactionIco from 'bi/plus-lg.svg'; import MoreIco from 'bi/three-dots.svg'; +import type { HTMLAttributes } from 'nuxt/dist/app/compat/capi'; withDefaults(defineProps<{ avatar?: string; - decorations?: (Omit & { offsetX?: number; offsetY?: number; })[]; + decorations?: (Omit)[]; reactions?: { name: string; url?: string; @@ -53,7 +54,7 @@ withDefaults(defineProps<{ avatar: '/img/docs/fukidashi/doya_ai.webp', }); -function getStyle(decoration: Omit & { offsetX?: number; offsetY?: number; }): HTMLAttributes['style'] { +function getStyle(decoration: Omit): HTMLAttributes['style'] { const angle = decoration.angle ?? 0; const rotate = angle === 0 ? undefined : `${angle * 360}deg`; const scaleX = decoration.flipH ? -1 : 1; diff --git a/components/tools/mocks/MkProf.vue b/components/tools/mocks/MkProf.vue index 2dfc1d4a..1c372c5f 100644 --- a/components/tools/mocks/MkProf.vue +++ b/components/tools/mocks/MkProf.vue @@ -23,15 +23,16 @@