Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/js/components/Splide/Splide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
</template>

<script lang="ts">
import { ComponentConstructor, Options, Splide } from '@splidejs/splide';
import { computed, defineComponent, onBeforeUnmount, onMounted, PropType, provide, Ref, ref, watch } from 'vue';
import { Splide } from '@splidejs/splide';
import type { ComponentConstructor, Options } from '@splidejs/splide';
import { computed, defineComponent, onBeforeUnmount, onMounted, provide, ref, watch } from 'vue';
import type { PropType, Ref } from 'vue';
import { EVENTS } from '../../constants/events';
import { SPLIDE_INJECTION_KEY } from '../../constants/keys';
import { merge } from '../../utils';
Expand Down
5 changes: 3 additions & 2 deletions src/js/components/SplideTrack/SplideTrack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
</template>

<script lang="ts">
import { defineComponent, onUpdated, inject, Ref } from 'vue';
import { defineComponent, onUpdated, inject } from 'vue';
import type { Ref } from 'vue';
import { SPLIDE_INJECTION_KEY } from '../../constants/keys';
import { Splide } from '@splidejs/splide';
import type { Splide } from '@splidejs/splide';

/**
* The component for the Splide track element.
Expand Down
2 changes: 1 addition & 1 deletion src/js/constants/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import {
EVENT_SCROLLED,
EVENT_UPDATED,
EVENT_VISIBLE,
EventMap,
} from '@splidejs/splide';
import type { EventMap } from '@splidejs/splide';


export const EVENTS: Array<keyof EventMap> = [
Expand Down
2 changes: 1 addition & 1 deletion src/js/plugin/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { App } from 'vue';
import type { App } from 'vue';
import { Splide, SplideSlide } from '../components';


Expand Down