@types/doubleclick-gpt
Advanced tools
Comparing version 0.0.3 to 238.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Publisher Tag v238 | ||
// Type definitions for Google Publisher Tag 238.0 | ||
// Project: https://developers.google.com/doubleclick-gpt/reference | ||
@@ -6,23 +6,24 @@ // Definitions by: John Wright <https://github.com/johngeorgewright> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
declare namespace googletag { | ||
export type SingleSizeArray = number[]; | ||
type SingleSizeArray = number[]; | ||
export type NamedSize = string | string[]; | ||
type NamedSize = string | string[]; | ||
export type SingleSize = SingleSizeArray | NamedSize; | ||
type SingleSize = SingleSizeArray | NamedSize; | ||
export type MultiSize = SingleSize[]; | ||
type MultiSize = SingleSize[]; | ||
export type GeneralSize = SingleSize | MultiSize; | ||
type GeneralSize = SingleSize | MultiSize; | ||
export type SizeMapping = GeneralSize[]; | ||
type SizeMapping = GeneralSize[]; | ||
export type SizeMappingArray = SizeMapping[]; | ||
type SizeMappingArray = SizeMapping[]; | ||
export interface CommandArray { | ||
push(f: Function): number; | ||
interface CommandArray { | ||
push(f: () => void): number; | ||
} | ||
export interface Service { | ||
interface Service { | ||
addEventListener( | ||
@@ -35,3 +36,3 @@ eventType: string, | ||
export interface CompanionAdsService extends Service { | ||
interface CompanionAdsService extends Service { | ||
enableSyncLoading(): void; | ||
@@ -41,13 +42,13 @@ setRefreshUnfilledSlots(value: boolean): void; | ||
export interface ContentService extends Service { | ||
setContent(slot: Slot, content: String): void; | ||
interface ContentService extends Service { | ||
setContent(slot: Slot, content: string): void; | ||
} | ||
export interface LazyLoadOptionsConfig { | ||
fetchMarginPercent?: number, | ||
renderMarginPercent?: number, | ||
mobileScaling?: number | ||
interface LazyLoadOptionsConfig { | ||
fetchMarginPercent?: number; | ||
renderMarginPercent?: number; | ||
mobileScaling?: number; | ||
} | ||
export interface ResponseInformation { | ||
interface ResponseInformation { | ||
advertiserId: string; | ||
@@ -59,3 +60,3 @@ campaignId: string; | ||
export interface SafeFrameConfig { | ||
interface SafeFrameConfig { | ||
allowOverlayExpansion?: boolean; | ||
@@ -85,3 +86,3 @@ allowPushExpansion?: boolean; | ||
export interface Slot { | ||
interface Slot { | ||
addService(service: Service): Slot; | ||
@@ -108,3 +109,3 @@ clearCategoryExclusions(): Slot; | ||
export interface PassbackSlot { | ||
interface PassbackSlot { | ||
display(): void; | ||
@@ -118,6 +119,6 @@ get(key: string): string; | ||
setTargeting(key: string, value: string | string[]): PassbackSlot; | ||
updateTargetingFromMap(map: Object): PassbackSlot; | ||
updateTargetingFromMap(map: object): PassbackSlot; | ||
} | ||
export interface PubAdsService extends Service { | ||
interface PubAdsService extends Service { | ||
clear(opt_slots?: Slot[]): boolean; | ||
@@ -158,3 +159,3 @@ clearCategoryExclusions(): PubAdsService; | ||
export interface SizeMappingBuilder { | ||
interface SizeMappingBuilder { | ||
addSize(viewportSize: SingleSizeArray, slotSize: GeneralSize): SizeMappingBuilder; | ||
@@ -164,4 +165,4 @@ build(): SizeMappingArray; | ||
export namespace events { | ||
export interface ImpressionViewableEvent { | ||
namespace events { | ||
interface ImpressionViewableEvent { | ||
serviceName: string; | ||
@@ -171,3 +172,3 @@ slot: Slot; | ||
export interface SlotOnloadEvent { | ||
interface SlotOnloadEvent { | ||
serviceName: string; | ||
@@ -177,3 +178,3 @@ slot: Slot; | ||
export interface SlotRenderEndedEvent { | ||
interface SlotRenderEndedEvent { | ||
advertiserId?: number; | ||
@@ -190,3 +191,3 @@ creativeId?: number; | ||
export interface slotVisibilityChangedEvent { | ||
interface slotVisibilityChangedEvent { | ||
inViewPercentage: number; | ||
@@ -193,0 +194,0 @@ serviceName: string; |
{ | ||
"name": "@types/doubleclick-gpt", | ||
"version": "0.0.3", | ||
"description": "TypeScript definitions for Google Publisher Tag v238", | ||
"version": "238.0.0", | ||
"description": "TypeScript definitions for Google Publisher Tag", | ||
"license": "MIT", | ||
@@ -19,2 +19,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "", | ||
"repository": { | ||
@@ -26,4 +27,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "80c061a1c34425889fc8f019ec9ff20b1a4ac172db03df3531bf2e3fba89bf9c", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "181f24a0d43046920a56e252a9efb4f131962ed1d15c3730bfe5a8ef0c4ea58f", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for Google Publisher Tag v238 (https://developers.google.com/doubleclick-gpt/reference). | ||
This package contains type definitions for Google Publisher Tag (https://developers.google.com/doubleclick-gpt/reference). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Tue, 28 Aug 2018 20:10:40 GMT | ||
* Last updated: Thu, 25 Oct 2018 21:26:04 GMT | ||
* Dependencies: none | ||
@@ -15,0 +15,0 @@ * Global values: googletag |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
164
1
9653