Skip to content

Type of the "options" prop on the "NuxtTurnstile" component #407

@josip2312

Description

@josip2312

🐛 The bug

The current type is: Omit<Partial<Turnstile.RenderParameters>, 'callback'>

However, you can still listen to the callback event and for my usecase it would be quite useful, the callback does go through but you get a type error because of the Omit of the callback property.

Image

🛠️ To reproduce

https://stackblitz.com/edit/github-d9j2y4e2?file=pages%2Findex.vue

🌈 Expected behaviour

Make the type Partial<Turnstile.RenderParameters>

ℹ️ Additional context

I may be missing some reason why the callback is omitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions