Skip to content

fix type errors #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
@@ -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';
5 changes: 3 additions & 2 deletions src/js/components/SplideTrack/SplideTrack.vue
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion src/js/constants/events.ts
Original file line number Diff line number Diff line change
@@ -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> = [
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';