[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

@ -22,6 +22,7 @@ export function filterOutSelfAndContactsFromCompanyOrWorkspace(
const workspaceMembersMap = workspaceMembers.reduce(
(map, workspaceMember) => {
// @ts-expect-error legacy noImplicitAny
map[workspaceMember.userEmail.toLowerCase()] = true;
return map;
@ -36,6 +37,7 @@ export function filterOutSelfAndContactsFromCompanyOrWorkspace(
(contact) =>
(isDifferentDomain(contact, selfDomainName) ||
!isWorkDomain(selfDomainName)) &&
// @ts-expect-error legacy noImplicitAny
!workspaceMembersMap[contact.handle.toLowerCase()] &&
!allHandles.includes(contact.handle.toLowerCase()),
);

View File

@ -1,3 +1,4 @@
// @ts-expect-error legacy noImplicitAny
import psl from 'psl';
import { capitalize } from 'twenty-shared/utils';

View File

@ -1,3 +1,4 @@
// @ts-expect-error legacy noImplicitAny
import psl from 'psl';
export const getDomainNameFromHandle = (handle: string): string => {