Installation
npm install --save @types/react-gtm-module
Summary
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.
declare const TagManager: {
dataLayer: (dataLayerArgs: TagManager.DataLayerArgs) => void;
initialize: (tagManagerArgs: TagManager.TagManagerArgs) => void;
};
declare namespace TagManager {
interface TagManagerArgs extends DataLayerArgs {
gtmId: string;
events?: object | undefined;
auth?: string | undefined;
preview?: string | undefined;
}
interface DataLayerArgs {
dataLayer?: object | undefined;
dataLayerName?: string | undefined;
}
}
export = TagManager;
Additional Details
- Last updated: Fri, 18 Oct 2024 18:09:36 GMT
- Dependencies: none
Credits
These definitions were written by Marc Veens.