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

fix Typescript delete must be on optional error #89

Merged
merged 4 commits into from
May 3, 2024

Conversation

miklcct
Copy link
Contributor

@miklcct miklcct commented May 3, 2024

I'm sorry, the code in #87 to introduce type safety has uncovered a type error in #88 . I didn't realise that the delete operator must only be used on optional properties, and the code now no longer runs.

This rewrites the method to avoid mutation, but transformation instead.

@miklcct miklcct closed this May 3, 2024
@miklcct miklcct reopened this May 3, 2024
@linusnorton linusnorton merged commit da2ddda into planarnetwork:master May 3, 2024
4 checks passed
@miklcct miklcct deleted the delete_error branch May 3, 2024 13:29
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.

None yet

2 participants