You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to reach into the form.value but it says I can't because its a union type, it'd be nice if I didn't have to type check the intent everywhere.
Conform version
latest
Steps to Reproduce the Bug or Issue
create a schema with a discriminated union
try to access the individual properties in typescript and watch it complain
What browsers are you seeing the problem on?
No response
Screenshots or Videos
No response
Additional context
I'm not sure if you already have types like this in conform, but here's a starting point if not:
Describe the bug and the expected behavior
I want to be able to reach into the
form.value
but it says I can't because its a union type, it'd be nice if I didn't have to type check theintent
everywhere.Conform version
latest
Steps to Reproduce the Bug or Issue
What browsers are you seeing the problem on?
No response
Screenshots or Videos
No response
Additional context
I'm not sure if you already have types like this in conform, but here's a starting point if not:
https://www.typescriptlang.org/play/?#code/C4TwDgpgBAwg9gWwXAdgaQiAzgHgCoB8UAvFANaZwBmUeA3AFCiRQCCANuxtvkaXlAgAPYBBQATLFACGKEFAD85SjQEAuKCggA3CACdGzaAGUArgCNge6QGNgOVgBpYfNoJFjJsRZp36oGqyG4NAAcqjwSKjcuIQkUGaW1nYOnDG8zpHI6JixBASMTCFQAAoAljZkeCH4zmjuohJSHFy5vK4Cwo1eAN5QANpkUGUoUGgAugoasvIAvgxQPnj9EwsBUKYSEFQjEOKFRqUVVSEA8lS1Yw2eUlhWIwDmUAA+mqYI5v6vWCAfcOyuepdG5sNJtQhrJTlSrVSCXNAENYaLS6AwMIosACy+geEF48R6a0Gw1GWWi4II4w00JOkHOlzIBQYsygADIoITFsSRlBwigyTkeIRJtTjrCIPS8M5GYxZgdigAxOBweLYvS4nB9aQaKymaAs159cw6vR6uhQGwaPriE16qAs2ZMgD0TsWUAAegoGEA
The text was updated successfully, but these errors were encountered: