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

chore: update repo #62

Merged
merged 6 commits into from Mar 6, 2023
Merged

chore: update repo #62

merged 6 commits into from Mar 6, 2023

Conversation

NozomuIkuta
Copy link
Member

I wanted to work on #24, but first I applied the latest unjs template for maintenance.

@NozomuIkuta NozomuIkuta self-assigned this Mar 6, 2023
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

Thanks <3

@pi0
Copy link
Member

pi0 commented Mar 6, 2023

Can you please check CI/lint issue?

@pi0 pi0 changed the title chore: apply the latest unjs template chore: update repo Mar 6, 2023
function genRawValue (value: unknown, indent = ""): string {
if (typeof value === "undefined") {
function genRawValue(value: unknown, indent = ""): string {
if (typeof value === "undefined" || value === undefined) {
Copy link
Member Author

Choose a reason for hiding this comment

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

I added value === undefined condition, othewise value can't be type-narrowed at the point of value.toString().

Copy link
Member Author

Choose a reason for hiding this comment

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

@pi0

I don't know why, but TypeScript seems to not type-narrow value with typeof x === "undefined" condition.

Since it passes unit tests, let me merge this PR for now.
But, please be aware that I included code change in this PR as well as applying the latest template. 🙌

@NozomuIkuta NozomuIkuta merged commit f67b9be into main Mar 6, 2023
@NozomuIkuta NozomuIkuta deleted the chore/apply-latest-template branch March 6, 2023 14:55
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