@next/third-parties
Version:
`@next/third-parties` is a collection of components and utilities that can be used to efficiently load third-party libraries into your Next.js application.
52 lines (51 loc) • 1.12 kB
TypeScript
declare global {
interface Window {
dataLayer?: Object[];
[key: string]: any;
}
}
type JSONValue = string | number | boolean | JSONValue[] | {
[key: string]: JSONValue;
};
export type GTMParams = {
gtmId: string;
gtmScriptUrl?: string;
dataLayer?: {
[key: string]: JSONValue;
};
dataLayerName?: string;
auth?: string;
preview?: string;
nonce?: string;
};
export type GAParams = {
gaId: string;
dataLayerName?: string;
debugMode?: boolean;
nonce?: string;
};
export type GoogleMapsEmbed = {
height?: number | string;
width?: number | string;
mode: 'place' | 'view' | 'directions' | 'streetview' | 'search';
apiKey: string;
style?: string;
allowfullscreen?: boolean;
loading?: 'eager' | 'lazy';
q?: string;
id?: string;
center?: string;
zoom?: string;
maptype?: string;
language?: string;
region?: string;
};
export type YouTubeEmbed = {
height?: number;
width?: number;
videoid: string;
playlabel?: string;
params?: string;
style?: string;
};
export {};