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 undefined in comment node type guards #1275

Merged
merged 1 commit into from
May 14, 2022

Conversation

jakebailey
Copy link
Contributor

I hit this while working on a transform; the as hides the fact that these can be undefined thanks to node?. Maybe I should change the cast too.

I'm not sure if I'm sending PRs correctly; there are a lot more changes in the repo when I build it, but they don't look related to any change I've made at all. Happy to let you make this change instead if I'm doing it wrong!

Copy link
Owner

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

Yeah, repo is a bit of a mess and slow to work in atm because some things are in flux. I'll be rewriting it to be deno first in the future and compile for npm with dnt (https://github.com/denoland/dnt) in order to get rid of the deno directory.

@dsherret dsherret merged commit 452cff3 into dsherret:latest May 14, 2022
@jakebailey jakebailey deleted the fix-comment-type-guards branch May 14, 2022 19:13
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