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

W.I.P. feat(ios): add PiP functionality #15168

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Calinteodor
Copy link
Contributor

@Calinteodor Calinteodor commented Oct 2, 2024

@Calinteodor Calinteodor marked this pull request as draft October 2, 2024 14:51

/**
* The type of the React {@code Component} props of {@link Video}.
*/
interface IProps {

_enableIosPIP?: boolean;

mirror: boolean;

onPlaying: Function;
Copy link

Choose a reason for hiding this comment

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

ISSUE: @typescript-eslint/ban-types (Severity: Medium)
Don't use Function as a type. The Function type accepts any function-like value.
It provides no type safety when calling the function, which can be a common source of bugs.
It also accepts things like class declarations, which will throw at runtime as they will not be called with new.
If you are expecting the function to accept certain arguments, you should explicitly define the function shape.

Remediation:
I understand this is not part of the change but this is a good best practice recommendation from the automation. Please consider improving in the future

🤖 powered by PullRequest Automation 👋 verified by Xiaoyong W

}
}

if (_enableIosPIP) {
Copy link

Choose a reason for hiding this comment

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

ISSUE: no-console (Severity: Medium)
Unexpected 'console' statement.

Remediation:
This is an automation generated comment regarding using console.log. It's a good recommendation to avoid console statement in production code. This includes several other console usages in this code

🤖 powered by PullRequest Automation 👋 verified by Xiaoyong W

_enableIosPIP: iosPIP
};
}

Copy link

Choose a reason for hiding this comment

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

ISSUE: @typescript-eslint/ban-ts-comment (Severity: Medium)
Do not use "@ts-ignore" because it alters compilation errors.

Remediation:
This is a valid recommendation from automation to avoid using @ts-ignore

🤖 powered by PullRequest Automation 👋 verified by Xiaoyong W

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.

1 participant