Skip to content

Consider undefined/null for optional rust types (close #278)#280

Merged
sehz merged 3 commits into
infinyon:masterfrom
DmitryAstafyev:master
Nov 17, 2023
Merged

Consider undefined/null for optional rust types (close #278)#280
sehz merged 3 commits into
infinyon:masterfrom
DmitryAstafyev:master

Conversation

@DmitryAstafyev

Copy link
Copy Markdown
Contributor

Before parsing value from JS and converting it into rust-type, checking for null / undefined and consider it as Option<T>

@DmitryAstafyev

Copy link
Copy Markdown
Contributor Author

related to #278

@morenol

morenol commented Nov 17, 2023

Copy link
Copy Markdown
Contributor

@DmitryAstafyev can you rebase on #281 is merged?

Can we add a new test/example for this case?

@DmitryAstafyev

Copy link
Copy Markdown
Contributor Author

@DmitryAstafyev can you rebase on #281 is merged?

Can we add a new test/example for this case?

done

@DmitryAstafyev

Copy link
Copy Markdown
Contributor Author

@morenol tests are green )

@DmitryAstafyev

DmitryAstafyev commented Nov 17, 2023

Copy link
Copy Markdown
Contributor Author

@morenol

Can we add a new test/example for this case?

Sorry, missed this question. I guess, yes... give me a try

@DmitryAstafyev

Copy link
Copy Markdown
Contributor Author

@morenol test has been added. Test has been passed ) we are green

@morenol morenol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! LGTM!

@morenol morenol requested a review from sehz November 17, 2023 21:43

@sehz sehz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good job

@sehz sehz added this pull request to the merge queue Nov 17, 2023
@sehz sehz added the enhancement New feature or request label Nov 17, 2023
Merged via the queue into infinyon:master with commit 2b2ac97 Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants