Skip to content
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

[TypeScript] - Custom input props bad boolean type #1290

Open
tandler5 opened this issue Apr 2, 2024 · 1 comment
Open

[TypeScript] - Custom input props bad boolean type #1290

tandler5 opened this issue Apr 2, 2024 · 1 comment
Labels
🔎 reproduction-needed Requires reproduction for further investigation

Comments

@tandler5
Copy link

tandler5 commented Apr 2, 2024

Reproduction

Playground does not support typescript

Describe the bug

const CustomInputOptions = {
  props: {
    booleanProps: {
       boolean:true,
       default: false,
    }
},

When I add CustomInputOptions as the second parameter to the createInput function, it returns:
Type 'boolean' is not assignable to type 'undefined'

Environment

"@formkit/nuxt": "^1.6.1"

@tandler5 tandler5 added ⛑ Needs triage The issue has not yet been examined by the FormKit team. 🐛 bug-report Bug is reported, but not verified by team labels Apr 2, 2024
@justin-schroeder
Copy link
Member

@tandler5 I’m unable to reproduce this error. Are you able to reproduce it in a repository for me or stackblitz?

@justin-schroeder justin-schroeder added 🔎 reproduction-needed Requires reproduction for further investigation and removed 🐛 bug-report Bug is reported, but not verified by team ⛑ Needs triage The issue has not yet been examined by the FormKit team. labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔎 reproduction-needed Requires reproduction for further investigation
Projects
None yet
Development

No branches or pull requests

2 participants