[QRQC_2] No implicitAny in twenty-server (#12075)

# Introduction
Following https://github.com/twentyhq/twenty/pull/12068
Related with https://github.com/twentyhq/core-team-issues/issues/975

We're enabling `noImplicitAny` handled few use case manually, added a
`ts-expect-error` to the others, we should plan to handle them in the
future
This commit is contained in:
Paul Rastoin
2025-05-15 18:23:22 +02:00
committed by GitHub
parent 08ce2f831e
commit 442f8dbe3c
120 changed files with 331 additions and 50 deletions

View File

@ -127,6 +127,7 @@ export class AdminPanelHealthService {
if (indicatorId === HealthIndicatorId.worker) {
return {
...indicatorStatus,
// @ts-expect-error legacy noImplicitAny
queues: (indicatorStatus?.queues ?? []).map((queue) => ({
id: `${indicatorId}-${queue.queueName}`,
queueName: queue.queueName,

View File

@ -201,14 +201,18 @@ export class AdminPanelService {
);
const versions = response.data.results
// @ts-expect-error legacy noImplicitAny
.filter((tag) => tag && tag.name !== 'latest')
// @ts-expect-error legacy noImplicitAny
.map((tag) => semver.coerce(tag.name)?.version)
// @ts-expect-error legacy noImplicitAny
.filter((version) => version !== undefined);
if (versions.length === 0) {
return { currentVersion, latestVersion: 'latest' };
}
// @ts-expect-error legacy noImplicitAny
versions.sort((a, b) => semver.compare(b, a));
const latestVersion = versions[0];