Closed Lucretiel closed 4 years ago
Temporary fix:
declare let window: Window & {
gapi: typeof gapi & {
client: typeof gapi.client & {
analytics: {
data: gapi.client.analytics.DataResource;
management: gapi.client.analytics.ManagementResource;
metadata: gapi.client.analytics.MetadataResource;
provisioning: gapi.client.analytics.ProvisioningResource;
}
};
};
};
const { gapi } = window;
This repo is abandoned, see #19 and use active fork instead: Maxim-Mazurok/google-api-typings-generator
Please, close this issue if you will, thanks for your cooperation!
The type signature for
gapi.client.analytics
(here: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/gapi.client.analytics/index.d.ts) claims the following structure:etc.
However, the actual structure includes the
analytics
namespace, like so:etc