chore: fix all Typescript warnings (#8618)

* [CAL-1517] fix all Typescript warnings

* solve conflicts

* Update stripeCheckoutSession.handler.ts

Parse is a guard, so even though the variable is unused the parse itself is needed.

* Update ToolbarPlugin.tsx

Don't change dependency tree

---------

Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-06-06 11:59:57 +00:00
1 parent 87e1ad7115
commit 2dbc73c75b
106 files changed
+425 -319

No files matched your search

+6 -5
View File
@@ -23,19 +23,19 @@ export type ConsoleUserInfoType = UserInfo & {
};
export interface IUserDeletion<T> {
delete(info: T): Promise<any>;
delete(info: T): Promise<WebUserInfoType>;
}
export interface IUserCreation<T> {
create(info: T): Promise<any>;
update(info: T): Promise<any>;
create(info: T): Promise<WebUserInfoType>;
update(info: T): Promise<WebUserInfoType>;
upsert?: never;
}
export interface IUserUpsertion<T> {
create?: never;
update?: never;
upsert(info: T): Promise<any>;
upsert(info: T): Promise<WebUserInfoType>;
}
export interface ISyncService {
@@ -50,9 +50,10 @@ export interface ISyncService {
export default class SyncServiceCore {
protected serviceName: string;
protected service: any;
protected service: unknown;
protected log: typeof logger;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
constructor(serviceName: string, service: any, log: typeof logger) {
this.serviceName = serviceName;
this.log = log;
+2 -1
View File
@@ -3,7 +3,8 @@ import SendgridService from "./SendgridService";
const services: ISyncServices[] = [
//CloseComService, This service gets a special treatment after deciding it shouldn't get the same treatment as Sendgrid
SendgridService,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
SendgridService as any,
];
export default services;