Skip to content

@vuedx/typecheck v-slot typings #83

@cexbrayat

Description

@cexbrayat

When using v-slot, for example with RouterView, vudex-typecheck throws:

=> ./src/App.vue:4:27
Error :: Binding element 'Component' implicitly has an 'any' type. (code 7031)
   2 |   <Navbar />
   3 |   <div class="container" style="margin-top: 70px">
   4 |     <RouterView v-slot="{ Component }">

This obvious fix is to disable noImplicitAny, but I was wondering if it was possible to do better?

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleblockedBlocked on some dependency

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions