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:
6 files changed
+11
-13
No files matched your search
@@ -14,9 +14,9 @@ let client_id = "";
|
||||
let client_secret = "";
|
||||
const hubspotClient = new hubspot.Client();
|
||||
|
||||
export type HubspotToken = TokenResponseIF & {
|
||||
export interface HubspotToken extends TokenResponseIF {
|
||||
expiryDate?: number;
|
||||
};
|
||||
}
|
||||
|
||||
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
const { code } = req.query;
|
||||
@@ -47,11 +47,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
// set expiry date as offset from current time.
|
||||
hubspotToken.expiryDate = Math.round(Date.now() + hubspotToken.expiresIn * 1000);
|
||||
|
||||
await createOAuthAppCredential(
|
||||
{ appId: "hubspot", type: "hubspot_other_calendar" },
|
||||
hubspotToken as any,
|
||||
req
|
||||
);
|
||||
await createOAuthAppCredential({ appId: "hubspot", type: "hubspot_other_calendar" }, hubspotToken, req);
|
||||
|
||||
const state = decodeOAuthState(req);
|
||||
res.redirect(
|
||||
|
||||
@@ -40,7 +40,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
|
||||
await createOAuthAppCredential(
|
||||
{ appId: "salesforce", type: "salesforce_other_calendar" },
|
||||
salesforceTokenInfo as any,
|
||||
salesforceTokenInfo,
|
||||
req
|
||||
);
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
|
||||
await createOAuthAppCredential(
|
||||
{ appId: "zohocrm", type: "zohocrm_other_calendar" },
|
||||
zohoCrmTokenInfo.data as any,
|
||||
zohoCrmTokenInfo.data,
|
||||
req
|
||||
);
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ window.ResizeObserver = vi.fn().mockImplementation(() => ({
|
||||
}));
|
||||
|
||||
vi.mock("../tooltip", async () => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const actual = (await vi.importActual("../tooltip")) as any;
|
||||
const TooltipMock = (props: object) => {
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
Reference in new issue
Block a user