From e4434f199d2af9eb188130e19d9b9ead7edb9bf4 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 28 May 2025 13:21:14 +0100 Subject: [PATCH] Function return type is illegal, not sure how this passed eslint (#21567) --- .../googlecalendar/lib/__mocks__/googleapis.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/app-store/googlecalendar/lib/__mocks__/googleapis.ts b/packages/app-store/googlecalendar/lib/__mocks__/googleapis.ts index 0cb797e550..dfed81fba5 100644 --- a/packages/app-store/googlecalendar/lib/__mocks__/googleapis.ts +++ b/packages/app-store/googlecalendar/lib/__mocks__/googleapis.ts @@ -51,8 +51,14 @@ export type MockOAuth2Client = { type: "oauth2"; args: [string, string, string]; setCredentials: typeof setCredentialsMock; - refreshToken: Function; - isTokenExpiring: Function; + refreshToken: () => Promise<{ + res: { + data: typeof MOCK_OAUTH2_TOKEN; + status: number; + statusText: string; + }; + }>; + isTokenExpiring: () => boolean; }; export const MOCK_JWT_TOKEN = {