laravel-echo-module icon indicating copy to clipboard operation
laravel-echo-module copied to clipboard

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

Open planetchili opened this issue 4 years ago • 4 comments

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", ],

planetchili avatar Jan 03 '21 12:01 planetchili

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

ricardogobbosouza avatar Mar 31 '21 16:03 ricardogobbosouza

#47

ricardogobbosouza avatar Mar 31 '21 16:03 ricardogobbosouza

Hello,

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

    const { $echo } = useContext()

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

san4io avatar Sep 22 '21 10:09 san4io

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!

san4io avatar Sep 22 '21 11:09 san4io