-
Notifications
You must be signed in to change notification settings - Fork 16
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
No typescript? #16
Comments
From a quick look into declare module '@lottiefiles/svelte-lottie-player' {
import type { SvelteComponentTyped } from 'svelte'
export class LottiePlayer extends SvelteComponentTyped<{
autoplay?: boolean
background: string
controls: boolean
controlsLayout?: string[]
count?: number
defaultFrame?: number
direction?: number
height: number
hover?: boolean
loop?: boolean
mode?: 'normal' | 'bounce'
onToggleZoom?: (boolean) => void
renderer?: 'svg' | 'canvas'
speed?: number
src?: string
style?: string
width: number
}> {}
} |
@jneuendorf just need a PR now :-D thanks man |
Done, see #17 |
Any updates on whether this PR will be implemented? Cheers |
In case you're a n00b like me, you need to put this code from the answer above in a file called |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not Found - GET https://registry.npmjs.org/@types%2flottiefiles__svelte-lottie-player - Not found
In 2023 you'd expect node modules to have TypeScript by default..
The text was updated successfully, but these errors were encountered: