Skip to content

Conflicts in v-scroll directive with VueUse #17468

Discussion options

You must be logged in to vote

IMO Vue language tools should handle this differently. Since you are importing the directive specifically, it should use the types for that. It should only fall back to the global types when there is no specific import.

You can report this to https://github.com/vuejs/language-tools if you wish. Here is a simple workaround which is much better than pinning quasar to 2.12.2:

<script lang="ts" setup>

import { type UseScrollReturn } from '@vueuse/core';
import { vScroll as vUseScroll } from '@vueuse/components';
// ...

</script>

<template>
    <div
      v-use-scroll="[
        (state: UseScrollReturn) => {
          // some logic
        },
        { throttle: 100 },
      ]"
    />
</tem…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@AlexMarlow25
Comment options

Comment options

You must be logged in to vote
2 replies
@rstoenescu
Comment options

@AlexMarlow25
Comment options

Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants