Skip to content

Small type error in the documentation #75

@mrleblanc101

Description

@mrleblanc101

If I copy-paste the With Swipe and Progress example in the documentation.

Image
<Notivue v-slot="item">
    <NotivueSwipe :item="item">
        <Notification :item="item">
            <NotificationProgress />
        </Notification>
    </NotivueSwipe>
</Notivue>

I get this TypeScript error:

Property 'item' is missing in type '{}' but required in type 'Omit<{ readonly item: NotivueItem; } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>'.ts-plugin(2345)

The fix is easy, replace <NotificationProgress /> with <NotificationProgress :item="item" />

Metadata

Metadata

Assignees

Labels

docsClarifications on documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions