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

Ts migration #756

Open
wants to merge 10 commits into
base: bundlephobia
Choose a base branch
from
Open

Ts migration #756

wants to merge 10 commits into from

Conversation

lit26
Copy link

@lit26 lit26 commented Feb 27, 2023

Add typescript migration for the frontend

@@ -92,7 +106,7 @@ function ExportList({ exports, totalSize, isLoading }) {
size={exportDictionary[letter][0].gzip}
totalSize={totalSize}
name={exportDictionary[letter][0].name}
path={exportDictionary[letter][0].path}
// path={exportDictionary[letter][0].path}
Copy link
Owner

Choose a reason for hiding this comment

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

Why did we need to comment this out?

Copy link
Author

Choose a reason for hiding this comment

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

Why did we need to comment this out?

I think the child component does not use path

}px`,
}}
>
{dep.percentShare.toFixed(1)}
{(dep.percentShare || 0).toFixed(1)}
Copy link
Owner

Choose a reason for hiding this comment

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

This looks rather verbose. We should ensure that if percentShare is nullable, the right fallback value is set on the API side.

Copy link
Author

Choose a reason for hiding this comment

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

So how do you want to handle this?

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