Skip to content

Scheduling infrastructure for absolutely everyone.

Function return type is illegal, not sure how this passed eslint (#21567)

Alex van Andele4434f199d2a
diff --git a/packages/app-store/googlecalendar/lib/__mocks__/googleapis.ts b/packages/app-store/googlecalendar/lib/__mocks__/googleapis.ts
index 0cb797e5502..dfed81fba55 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 = {