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

【v3.3.1】关于文档中Events和实际不符合导致ts报错的问题,比如在文档中有onComplete事件,但是在vue3-lottie.d.ts中却是onOnComplete函数; #572

Open
songyunbiao opened this issue Jan 24, 2025 · 0 comments

Comments

@songyunbiao
Copy link

songyunbiao commented Jan 24, 2025

如标题所说,事件名称不对导致vscode ts 报错;
文档中的:
Image
实际中的:
Image
不管写onComplete,还是onOnComplete哪一个,都会导致报错 要么是Cannot invoke an object which is possibly 'undefined'.ts-plugin(2722)要么是Property 'onComplete' does not exist on type

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

1 participant