ts: Convert portico/google_analytics.js to TypeScript.

Created a custom type declaration file `ga-gtag.d.ts` for
`ga-gtag` npm module.

`@types/gtag.js` is installed as a devDependency so that the type
for `gtag` function can be provided.
This commit is contained in:
Lalit Singh
2024-11-12 12:59:25 +05:30
committed by Tim Abbott
parent 5b70775ab6
commit 8eab7591a3
6 changed files with 43 additions and 13 deletions

View File

@@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 319 # Last bumped for message-link class
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
PROVISION_VERSION = (301, 0) # bumped 2024-11-10 to remove commander, minimist, yargs
PROVISION_VERSION = (301, 1) # bumped 2024-11-12 to add types for Google analytics