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

Support Optional type #19

Open
cuzfrog opened this issue Oct 27, 2024 · 0 comments
Open

Support Optional type #19

cuzfrog opened this issue Oct 27, 2024 · 0 comments
Assignees
Labels
enhancement An improvement on a feature
Milestone

Comments

@cuzfrog
Copy link
Member

cuzfrog commented Oct 27, 2024

An optional type is a container type like java.util.Optional. A field type can be:

Optional<Map<Integer, Optional<String>>> field;

Its semantics should be:

  • outter most optional type marks the field as optional;
  • nested optional types flattened;

The output should be like:

field?: Map<number, string>;
@cuzfrog cuzfrog added the enhancement An improvement on a feature label Oct 27, 2024
@cuzfrog cuzfrog added this to the Day2 features milestone Oct 27, 2024
@cuzfrog cuzfrog added the good first issue Good for newcomers label Nov 9, 2024
@cuzfrog cuzfrog self-assigned this Feb 20, 2025
@cuzfrog cuzfrog removed the good first issue Good for newcomers label Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement on a feature
Projects
None yet
Development

No branches or pull requests

1 participant