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 ts_optional to structs, rather than on individual struct fields #5448

Open
5 tasks done
dessalines opened this issue Feb 21, 2025 · 0 comments
Open
5 tasks done
Labels
area: maintenance enhancement New feature or request

Comments

@dessalines
Copy link
Member

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

We currently have to have ts_optional directives on every single struct field. This is verbose and error-prone.

Describe the solution you'd like.

ts-rs recently merged a PR adding it at the struct level.

On ts-rs 's next release, use this.

Describe alternatives you've considered.

NA

Additional context

Aleph-Alpha/ts-rs#366

@dessalines dessalines added area: maintenance enhancement New feature or request labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: maintenance enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant