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

Form.tsx typings #72

Closed
kopestik opened this issue Jun 14, 2022 · 0 comments
Closed

Form.tsx typings #72

kopestik opened this issue Jun 14, 2022 · 0 comments

Comments

@kopestik
Copy link

kopestik commented Jun 14, 2022

NOTE: I'm still learning Typescript, and weeks after posting this, I learned that the type after = sign is the default type.

I know this question is Typescript-specific, but I can't find articles about it.

Why do you do this in the Form.tsx?
TFormValues extends Record<string, unknown> = Record<string, unknown>

Is it really different from this?
TFormValues extends Record<string, unknown>

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

1 participant