chore: move type
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import { TrackingData, TrackingProps } from "@/types/components/tracking"
|
import {
|
||||||
|
TrackingData,
|
||||||
|
TrackingProps,
|
||||||
|
WindowWithDataLayer,
|
||||||
|
} from "@/types/components/tracking"
|
||||||
import { usePathname, useSearchParams } from "next/navigation"
|
import { usePathname, useSearchParams } from "next/navigation"
|
||||||
import { useEffect } from "react"
|
import { useEffect } from "react"
|
||||||
|
|
||||||
type WindowWithDataLayer = Window & {
|
|
||||||
datalayer: { [key: string]: any }
|
|
||||||
}
|
|
||||||
|
|
||||||
declare const window: WindowWithDataLayer
|
declare const window: WindowWithDataLayer
|
||||||
|
|
||||||
function createPageObject(trackingData: TrackingData) {
|
function createPageObject(trackingData: TrackingData) {
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
export type WindowWithDataLayer = Window & {
|
||||||
|
datalayer: { [key: string]: any }
|
||||||
|
}
|
||||||
|
|
||||||
export type TrackingProps = {
|
export type TrackingProps = {
|
||||||
pageData: {
|
pageData: {
|
||||||
pageId: string
|
pageId: string
|
||||||
|
|||||||
Reference in New Issue
Block a user