[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:
@ -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()),
|
||||
);
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
import psl from 'psl';
|
||||
import { capitalize } from 'twenty-shared/utils';
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
import psl from 'psl';
|
||||
|
||||
export const getDomainNameFromHandle = (handle: string): string => {
|
||||
|
||||
Reference in New Issue
Block a user