-
Notifications
You must be signed in to change notification settings - Fork 5
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
TypeScript: getDotLottieInstance should be defined (vue3) #187
Comments
@afsalz any updates on this ? |
Hi @emmanuelgeoffray , We are using the In our current setup, we receive the expose function as a second argument in the setup function, as shown below: import { defineComponent } from 'vue';
export default defineComponent({
setup(props, { expose }) {
expose({
someMethod() {
// ...
}
});
}
}); We tried using If you have a solution, we would greatly appreciate your contribution. @theashraf , we are working on a solution for this. Thank you! |
hey @afsalz |
Overview
The doc for the vue package mentions a getDotLottieInstance function but it is not in the component typing.
getDotLottieInstance is not defined, triggering TS issues and losing type.
I think that we should use
defineExpose
at this lineas explained in the Vue docs here
Consuming repo
dotlottie-vue
Labels
Type: Bug
label to this issue.The text was updated successfully, but these errors were encountered: