vue icon indicating copy to clipboard operation
vue copied to clipboard

Named mixins functions have a bug infering types of inject properties Vue 2.7.14

Open ColinRosati opened this issue 2 years ago • 0 comments

Version

2.7.14

Reproduction link

codesandbox.io

Screenshot 2023-01-16 at 6 42 05 PM Screenshot 2023-01-16 at 6 42 13 PM

Steps to reproduce

When declaring mixins with named function we can't use properties. See inject properties not inferred.

What is expected?

Named function mixins data is properly inferred

What is actually happening?

There is a problem using mixins that are declared as named functions


I ran into this problem upgrade from 2.6 to 2.7.17 and our app using named function mixins

ColinRosati avatar Jan 16 '23 14:01 ColinRosati