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

Add checks for null/undefined to keep ts happy #177

Merged
merged 4 commits into from
Nov 28, 2020

Conversation

halfnelson
Copy link
Contributor

This fixes the production build on my pc.

@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2020

🦋 Changeset detected

Latest commit: 88e84f0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte-parse Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pngwn
Copy link
Owner

pngwn commented Nov 10, 2020

Is this a fix for a TS error or a runtime error?

@halfnelson
Copy link
Contributor Author

the latest master wouldn't produce a production build, ts complained

@pngwn pngwn force-pushed the fix/keep-ts-happy branch from b01a056 to ea53568 Compare November 28, 2020 21:11
@pngwn pngwn force-pushed the fix/keep-ts-happy branch from ea53568 to eab65a5 Compare November 28, 2020 21:14
@pngwn
Copy link
Owner

pngwn commented Nov 28, 2020

Sorry about the delay on this one, I've had some issues with my release workflows that I have finally resolved!

I swapped the conditional to a ts-ignore for perf reasons, as we discussed, and rebased on master.

@pngwn pngwn merged commit 07ed9ef into pngwn:master Nov 28, 2020
@github-actions github-actions bot mentioned this pull request Nov 28, 2020
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