Does anybody know if the google Calendar API (npm googleapis pkg) for node.js (or browser) has types available that could be used in typescript. Allowing a strongly typed approach in node or angular.
I could not find a @types/googleapis npm package. Nor anything in the doc.
Any advise welcome.
Thanks in advance.
-- The documentation says it is natively supported, no need for separate package. Doc - section Typescript BUT, when I try, as stated in the doc
import { google, calendar_v3 } from 'googleapis';
Typescript tells me : [ts] Module '"/home/me/myProject/functions/node_modules/googleapis/build/src/index"' has no exported member 'calendar_v3'. [2305]
When I look in googleapis/build/src/index.d.ts I see GoogleApis, that point to ../apis where all the apis are, with a v3.d.ts file including the namespace
* @namespace calendar
* @type {Function}
* @version v3
* @variation v3
So, obviously, it is there, but I am missing something ... but what? How can you use this library in typescript? An example would be welcome.
Philippe