fix: improve typings
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
export type WindowWithDataLayer = Window & {
|
||||
datalayer: { [key: string]: any }
|
||||
}
|
||||
|
||||
export type TrackingProps = {
|
||||
pageData: {
|
||||
pageId: string
|
||||
@@ -21,3 +17,12 @@ export type TrackingData = {
|
||||
publishedDate: string
|
||||
createdDate: string
|
||||
}
|
||||
|
||||
export type SiteSectionObject = {
|
||||
sitesection1: string
|
||||
sitesection2: string
|
||||
sitesection3: string
|
||||
sitesection4: string
|
||||
sitesection5: string
|
||||
sitesection6: string
|
||||
}
|
||||
|
||||
3
types/window.d.ts
vendored
Normal file
3
types/window.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
interface Window {
|
||||
datalayer: { [key: string]: any }
|
||||
}
|
||||
Reference in New Issue
Block a user