-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
#6248 Improvement: Set foundation to improve migrate-to-typescript efficiency #6249
#6248 Improvement: Set foundation to improve migrate-to-typescript efficiency #6249
Conversation
Cloudflare Pages deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
/** | ||
* Class that manages the queue of SyncPlay. | ||
*/ | ||
class QueueCore { | ||
private manager: null | Manager; | ||
private lastPlayQueueUpdate: null | ApiClientPlayMessageData; | ||
private playlist: any[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected any. Specify a different type. @typescript-eslint/no-explicit-any
Suggestion(s) available:
private playlist: any[]; | |
private playlist: unknown[]; |
private playlist: any[]; | |
private playlist: never[]; |
return Helper.translateItemsForPlayback(apiClient, result.Items, { | ||
ids: itemIds, | ||
serverId: serverId | ||
}).then((items) => { | ||
}).then((items: any[]) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected any. Specify a different type. @typescript-eslint/no-explicit-any
Suggestion(s) available:
}).then((items: any[]) => { | |
}).then((items: unknown[]) => { |
}).then((items: any[]) => { | |
}).then((items: never[]) => { |
|
||
/** | ||
* Class that manages the SyncPlay group selection menu. | ||
*/ | ||
class GroupSelectionMenu { | ||
private syncPlayEnabled: boolean; | ||
private SyncPlay: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected any. Specify a different type. @typescript-eslint/no-explicit-any
Suggestion(s) available:
private SyncPlay: any; | |
private SyncPlay: unknown; |
private SyncPlay: any; | |
private SyncPlay: never; |
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/lt/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/ar/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/fa/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/zh_Hans/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/pt/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/fa/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/pt_PT/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/pt/
Co-authored-by: Bill Thornton <[email protected]>
* stylelint-codeguide v1.0.2 * stylelint-scss v6.10.0
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/fr/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/pt_PT/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/pt/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/it/
Translation: Jellyfin/Jellyfin Web Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-web/sr/
…--typescript-convert
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
Ran into rebasing issues after a bad merge. Re-opened with a clean branch here: #6440 |
Changes
Resolves #6248.
src/index.jsx
tosrc/index.tsx
and declareswebSettings.d.ts
and another modeule to serve as an example of how the migration to typescript can be done iterativelyIssues