diff --git a/packages/client/src/components/marquee.vue b/packages/client/src/components/marquee.vue index 9721e2e87..2088c5ed8 100644 --- a/packages/client/src/components/marquee.vue +++ b/packages/client/src/components/marquee.vue @@ -23,9 +23,9 @@ const props = withDefaults(defineProps<{ reverse: false, }); -let contentEl = $ref(); +let contentEl: HTMLElement = $ref(); -function calc() { +function calc(): void { const eachLength = contentEl.offsetWidth / props.repeat; const factor = 3000; const duration = props.duration / ((1 / eachLength) * factor);