@types/react-gtm-module
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -20,11 +20,11 @@ // Type definitions for react-gtm-module 2.0 | ||
*/ | ||
events?: object; | ||
events?: object | undefined; | ||
/** | ||
* Used to set environments. | ||
*/ | ||
auth?: string; | ||
auth?: string | undefined; | ||
/** | ||
* Used to set environments, something like env-00. | ||
*/ | ||
preview?: string; | ||
preview?: string | undefined; | ||
} | ||
@@ -36,9 +36,9 @@ | ||
*/ | ||
dataLayer?: object; | ||
dataLayer?: object | undefined; | ||
/** | ||
* Custom name for dataLayer object. | ||
*/ | ||
dataLayerName?: string; | ||
dataLayerName?: string | undefined; | ||
} | ||
export default TagManager; |
{ | ||
"name": "@types/react-gtm-module", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "TypeScript definitions for react-gtm-module", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-gtm-module", | ||
"license": "MIT", | ||
@@ -14,3 +15,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -23,4 +24,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "146c1a8a296d88ef91c33f793f96aeff5f3d8d2c9c3fa3bd58e93be4bfbf6269", | ||
"typeScriptVersion": "2.2" | ||
"typesPublisherContentHash": "39708b14beff9e325b210e98d3dd2387f51b320b5d2413194ef509f5df1b91eb", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -5,9 +5,55 @@ # Installation | ||
# Summary | ||
This package contains type definitions for react-gtm-module ( https://github.com/alinemorelli/react-gtm ). | ||
This package contains type definitions for react-gtm-module (https://github.com/alinemorelli/react-gtm). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-gtm-module | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-gtm-module. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-gtm-module/index.d.ts) | ||
````ts | ||
// Type definitions for react-gtm-module 2.0 | ||
// Project: https://github.com/alinemorelli/react-gtm | ||
// Definitions by: Marc Veens <https://github.com/marcveens> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
Additional Details | ||
* Last updated: Wed, 22 May 2019 16:24:35 GMT | ||
declare const TagManager: { | ||
dataLayer: (dataLayerArgs: DataLayerArgs) => void; | ||
initialize: (tagManagerArgs: TagManagerArgs) => void; | ||
}; | ||
export interface TagManagerArgs extends DataLayerArgs { | ||
/** | ||
* GTM id, must be something like GTM-000000. | ||
*/ | ||
gtmId: string; | ||
/** | ||
* Additional events such as 'gtm.start': new Date().getTime(),event:'gtm.js'. | ||
*/ | ||
events?: object | undefined; | ||
/** | ||
* Used to set environments. | ||
*/ | ||
auth?: string | undefined; | ||
/** | ||
* Used to set environments, something like env-00. | ||
*/ | ||
preview?: string | undefined; | ||
} | ||
export interface DataLayerArgs { | ||
/** | ||
* Object that contains all of the information that you want to pass to Google Tag Manager. | ||
*/ | ||
dataLayer?: object | undefined; | ||
/** | ||
* Custom name for dataLayer object. | ||
*/ | ||
dataLayerName?: string | undefined; | ||
} | ||
export default TagManager; | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 07 Jul 2021 17:33:43 GMT | ||
* Dependencies: none | ||
@@ -17,2 +63,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Marc Veens <https://github.com/marcveens>. | ||
These definitions were written by [Marc Veens](https://github.com/marcveens). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4956
0
63