Unverified Commit 280b9f98 authored by Janicklas Ralph's avatar Janicklas Ralph Committed by GitHub

Add types to package.json (#58420)

cc: @housseindjirdeh 
parent f99242ba
......@@ -8,6 +8,7 @@
"exports": {
"./google": "./dist/google/index.js"
},
"types": "dist/types/google.d.ts",
"files": [
"dist"
],
......
......@@ -3,20 +3,7 @@
import React from 'react'
import Script from 'next/script'
declare global {
interface Window {
dataLayer?: Object[]
[key: string]: any
}
}
type GTMParams = {
gtmId: string
dataLayer?: string[]
dataLayerName?: string
auth?: string
preview?: string
}
import type { GTMParams } from '../types/google'
let currDataLayerName: string | undefined = undefined
......
declare global {
interface Window {
dataLayer?: Object[]
[key: string]: any
}
}
export type GTMParams = {
gtmId: string
dataLayer?: string[]
dataLayerName?: string
auth?: string
preview?: string
}
export type GoogleMapsEmbed = {
height?: number
width?: number
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment