Skip to content

Commit

Permalink
fix(type): remove vueuse type
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianArenal committed Jan 28, 2025
1 parent f6b29d1 commit 41a7d4f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<script lang="ts">
import { RelatedPrompt as RelatedPromptModel } from '@empathyco/x-types';
import { computed, defineComponent, PropType, ref } from 'vue';
import { Fn } from '@vueuse/core';
import SlidingPanel from '../../../components/sliding-panel.vue';
import { relatedPromptsXModule } from '../x-module';
import { use$x, useState } from '../../../composables';
Expand Down Expand Up @@ -167,7 +166,7 @@
x.emit('UserSelectedARelatedPrompt', selectedIndex);
};
const onEnter = (el: Element, done: Fn) => {
const onEnter = (el: Element, done: () => void) => {
const element = el as HTMLElement;
const selectedIndex = Number.parseInt(
relatedPromptElements.value[0].getAttribute('data-index')!
Expand Down Expand Up @@ -196,7 +195,7 @@
});
};
const onLeave = (el: Element, done: Fn) => {
const onLeave = (el: Element, done: () => void) => {
const element = el as HTMLElement;
element.style.transitionDelay = `${
(relatedPrompts.value.length - relatedPromptComponents.value.length - 1) *
Expand Down

0 comments on commit 41a7d4f

Please sign in to comment.