You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may not be complete here's a quick workaround add the gtag.js types package to your project @types/gtag.js (make sure that this is picked up from your compilerOptions.types array or typeRoots.
If you've already created a declaration file as a placeholder then you should be able to change it to
declare module 'ga-gtag' { export function install(id: string) export type gtag = Gtag.Gtag }
The Gtag.Gtag type comes from the @types/gtag.js types
Hello,
is there a declaration file to use with Typescript?
npm i --save-dev @types/ga-gtag
doesn't exist.Thanks!
The text was updated successfully, but these errors were encountered: