Skip to content

Type of primevue input prop not correctly inferred #66

@Brads3290

Description

@Brads3290

In the following code, the type of options is expected to be undefined, so TS raises an error when I try to assign a string[].

<div>
    <FormKit type="primeSelect" name="region" label="Region" :options="['option 1', 'option 2']" />
</div>

CleanShot 2024-11-18 at 11 33 51@2x

This is a Nuxt project, set up in the following way:

  • @formkit/nuxt module
  • @sfxcode/formkit-primevue-nuxt module with formkitAutoConfig: false
  • A formkit.config.ts file (used by @formkit/nuxt) which manually loads the PV components from @sfxcode/formkit-primevue

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