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

First stage of stricter typing #52

Merged
merged 1 commit into from
Oct 28, 2022
Merged

Conversation

Manc
Copy link
Contributor

@Manc Manc commented Oct 28, 2022

For this PR I have upgraded to the latest version and reapplied some of my previous "experiments", which I think should quite straight forward and safe to merge, but please have a look. I have left out changes that were too experimental or incomplete.

One thing that I added today is a differentiation of NodeValue to NodeValueWithParent and NodeValueWithoutParent (in src/observableInterfaces.ts). From your code I inferred that the properties parent and key are either defined or not defined, depending whether the NodeValue has a parent or not. By separating the types I think it becomes a bit easier to deal with those objects when it can be safely assumed that if one of those properties exists, the other one does too.

If you think this is too much for one PR, please let me know and I'll try to break it down a bit more.

@jmeistrich jmeistrich merged commit a593c05 into LegendApp:main Oct 28, 2022
@jmeistrich
Copy link
Contributor

Nice, all of the changes look great! Thanks!

@jmeistrich
Copy link
Contributor

Released in 0.21.7

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

Successfully merging this pull request may close these issues.

2 participants