Skip to content

Conversation

@paribaker
Copy link
Collaborator

@paribaker paribaker commented Jan 13, 2025

This PR adds a new export that creates the formfield types for a user, this should function similar to the method we have in tn-models. Will update the readme after it is properly tested.

Example usage:

class SomeForm extends Form<any>{
   static name = FormField.create()
   static email = FormField.create()


}

TSomeForm = SomeForm & ExtractFormFields<SomeForm>

@paribaker paribaker merged commit ba993a6 into main Mar 13, 2025
1 check passed
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