Skip to content

Ts migration#756

Open
lit26 wants to merge 10 commits into
pastelsky:bundlephobiafrom
lit26:ts-migration
Open

Ts migration#756
lit26 wants to merge 10 commits into
pastelsky:bundlephobiafrom
lit26:ts-migration

Conversation

@lit26

@lit26 lit26 commented Feb 27, 2023

Copy link
Copy Markdown

Add typescript migration for the frontend

totalSize={totalSize}
name={exportDictionary[letter][0].name}
path={exportDictionary[letter][0].path}
// path={exportDictionary[letter][0].path}

Copy link
Copy Markdown
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
Copy Markdown
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

}}
>
{dep.percentShare.toFixed(1)}
{(dep.percentShare || 0).toFixed(1)}

Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants