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

@@ -100,6 +100,7 @@
"@types/autosize": "^4.0.1",
"@types/blueimp-md5": "^2.18.0",
"@types/co-body": "^6.1.3",
"@types/gtag.js": "^0.0.20",
"@types/is-url": "^1.2.32",
"@types/jquery": "^3.3.31",
"@types/jquery.validation": "^1.16.7",