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

add loose autocomplete in Format type #54

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

sebastianwd
Copy link
Contributor

currently the type for the format parameter of the format function doesn't let typescript suggest the possible values. By using ({} & string) typescript shows the values while also alllowing any string as indended originally

before:
image

after:
image

Copy link

vercel bot commented Apr 18, 2024

@sebastianwd is attempting to deploy a commit to the Formkit Team on Vercel.

A member of the Team first needs to authorize it.

@justin-schroeder justin-schroeder merged commit 2d13206 into formkit:main Apr 18, 2024
1 check failed
@justin-schroeder
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants