nuxt-community / laravel-echo-module

Laravel Echo for Nuxt 2
MIT License
86 stars 31 forks source link

Vue instance does not get typescript type declaration merged for $echo #31

Open planetchili opened 3 years ago

planetchili commented 3 years ago

Unlike the $axios module, I do not get any type information for $echo.

I have added to the types array as follows:

"types": [ "@types/node", "@nuxt/types", "@nuxtjs/axios", "@nuxtjs/laravel-echo", ],

ricardogobbosouza commented 3 years ago

Hi @planetchili Added support on version 2.0.0-alpha.1 PS: I need to update docs

ricardogobbosouza commented 3 years ago

47

san4io commented 2 years ago

Hello,

While using composition-api, it also doesn't get types.

    const { $echo } = useContext()

Property '$echo' does not exist on type 'UseContextReturn'

san4io commented 2 years ago

Hello,

While using composition-api, it also doesn't get types.

    const { $echo } = useContext()

Property '$echo' does not exist on type 'UseContextReturn'

Excuse me if I switch to "@nuxtjs/laravel-echo": "2.0.0-alpha.5", everything is ok!