chore: fix all @typescript-eslint/no-explicit-any warnings (#10656)

Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-08-21 11:01:56 +02:00
1 parent 2a9e061575
commit 0ddab30340
6 files changed
+11 -13

No files matched your search

+4 -4
View File
@@ -832,13 +832,13 @@ const SetupProfileBanner = ({ closeAction }: { closeAction: () => void }) => {
const Main = ({
status,
error,
errorMessage,
data,
filters,
}: {
status: string;
data: GetByViewerResponse;
error: any;
errorMessage?: string;
filters: ReturnType<typeof getTeamsFiltersFromQuery>;
}) => {
const isMobile = useMediaQuery("(max-width: 768px)");
@@ -850,7 +850,7 @@ const Main = ({
}
if (status === "error") {
return <Alert severity="error" title="Something went wrong" message={error.message} />;
return <Alert severity="error" title="Something went wrong" message={errorMessage} />;
}
const isFilteredByOnlyOneItem =
@@ -947,7 +947,7 @@ const EventTypesPage = () => {
title="Event Types"
description="Create events to share for people to book on your calendar."
/>
<Main data={data} status={status} error={error} filters={filters} />
<Main data={data} status={status} errorMessage={error?.message} filters={filters} />
</ShellMain>
);
};
+1
View File
@@ -184,6 +184,7 @@ test.describe("BOOKING_REJECTED", async () => {
expect(webhookReceiver.requestList.length).toBe(1);
});
const [request] = webhookReceiver.requestList;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const body = request.body as any;
// remove dynamic properties that differs depending on where you run the tests