Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$style not defined on getCurrentInstance() in typescript #496

Closed
gregveres opened this issue Sep 2, 2020 · 1 comment
Closed

$style not defined on getCurrentInstance() in typescript #496

gregveres opened this issue Sep 2, 2020 · 1 comment

Comments

@gregveres
Copy link

I am using typescript and the composition api. I am trying to access $style in the setup function and typescript doesn't believe that $style is part of the object returned from getCurrentInstance().

This seems to be an oversight on the type definition of getCurrentInstance().

I am trying to use the approach suggested here

@pikax
Copy link
Member

pikax commented Sep 2, 2020

typing for getCurrentInstance comes from vue directly and not managed by the composition-api plugin

@pikax pikax closed this as completed Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants