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 Types #146

Open
Sindhani opened this issue Feb 20, 2023 · 1 comment
Open

Typescript Types #146

Sindhani opened this issue Feb 20, 2023 · 1 comment

Comments

@Sindhani
Copy link

Hi thank you for this wonderfull package.
i want to know that is thery any way that i can define the type of my Form attributes so it gives me code completion
like

interface FormInterface{
first_name?:stirng
}

const form:FormInterface = new Form({first_name:string})

currently it gives me only the form only attributes defined in your files

@nguyentranchung
Copy link
Contributor

Form.make({ first_name: "string" })

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

No branches or pull requests

2 participants