aboutsummaryrefslogtreecommitdiff
path: root/src/gapi.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/gapi.ts')
-rw-r--r--src/gapi.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gapi.ts b/src/gapi.ts
index efcd6e3..e840f0e 100644
--- a/src/gapi.ts
+++ b/src/gapi.ts
@@ -18,7 +18,7 @@ function to_params(dict: Object) {
)).join('&');
}
-let loggedIn = false;
+let loggedIn: boolean = null;
function _getAuthToken(interactive = false): Promise<string> {
return new Promise(resolver =>
@@ -80,7 +80,7 @@ export type GCalendarMeta = {
enabled: boolean
};
-export async function getCalendars(token: string): Promise<GCalendarMeta> {
+export async function getCalendars(token: string): Promise<any> {
let response = await fetch(
`${gapiBase}/users/me/calendarList?${to_params({access_token: token})}`, { method: 'GET' });
return (await response.json()).items;