Skip to content

Add typescript Support #10

Closed
Closed
@Andreas-Schoenefeldt

Description

@Andreas-Schoenefeldt

If I try to use the library in a typescript project I get the following compilation error:

TS7016: Could not find a declaration file for module 'lottie-web-vue'. './node_modules/lottie-web-vue/dist/lottie-web-vue.umd.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/lottie-web-vue` if it exists or add a new declaration (.d.ts) file containing `declare module 'lottie-web-vue';`

My main.ts (vue 3):

import { createApp } from 'vue'
import LottieAnimation from 'lottie-web-vue'
// ...

createApp(App).use(LottieAnimation);

It would be great, if you could adopt typescript support for the library :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions