Skip to content

Error on Img tag, but compiles fine. #59

Open
@MichalNemec

Description

@MichalNemec
<script>
	import image from '$lib/...';
	import { FxReveal as ImgFx } from '@zerodevx/svelte-img';
</script>

<div class="flex">
        <ImgFx src={image} alt="Hello World" />
</div>
Object literal may only specify known properties, and '"alt"' does not exist in type 'FxRevealProps'.js(2353)
(property) "alt": string

How to properly do this that the alt is not throwing error?

Html is rendered correctly, its just VSCode issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions