Typescript v5 + eslint 8.57 WIP

This commit also improves some type handling in the project.
This commit is contained in:
John Livingston
2024-09-07 14:49:27 +02:00
parent 64a9c7be21
commit 7b3d93b290
41 changed files with 2652 additions and 3054 deletions

View File

@ -45,7 +45,7 @@ async function initCustomFields (options: RegisterServerOptions): Promise<void>
const body: any = params.body
const video: Video | undefined = params.video
if (!video || !video.id) {
if (!video?.id) {
return
}
if (!body.pluginData) return
@ -115,7 +115,7 @@ async function fillVideoRemoteLiveChat (
const infos = await getVideoLiveChatInfos(options, video)
if (!infos) { return }
let ok: boolean = false
let ok = false
// We must check if there is a compatible connection protocol...
if (anonymousConnectionInfos(infos)) {
// Connection ok using a remote anonymous account. That's enought.