From ca5d6ada4e07b3a7e48333311d9c22b6018fa6b7 Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Tue, 23 Oct 2018 20:57:16 +0100 Subject: [PATCH] Fix violations of 'ban-types' lint rule. --- types/doubleclick-gpt/index.d.ts | 7 ++++--- types/doubleclick-gpt/tslint.json | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/doubleclick-gpt/index.d.ts b/types/doubleclick-gpt/index.d.ts index 22c5048887..32aa85ed87 100644 --- a/types/doubleclick-gpt/index.d.ts +++ b/types/doubleclick-gpt/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: John Wright // Steven Joyce // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 declare namespace googletag { export type SingleSizeArray = number[]; @@ -20,7 +21,7 @@ declare namespace googletag { export type SizeMappingArray = SizeMapping[]; export interface CommandArray { - push(f: Function): number; + push(f: () => void): number; } export interface Service { @@ -37,7 +38,7 @@ declare namespace googletag { } export interface ContentService extends Service { - setContent(slot: Slot, content: String): void; + setContent(slot: Slot, content: string): void; } export interface LazyLoadOptionsConfig { @@ -109,7 +110,7 @@ declare namespace googletag { setTagForChildDirectedTreatment(value: number): PassbackSlot; setTagForUnderAgeOfConsent(value: number): PassbackSlot; setTargeting(key: string, value: string | string[]): PassbackSlot; - updateTargetingFromMap(map: Object): PassbackSlot; + updateTargetingFromMap(map: object): PassbackSlot; } export interface PubAdsService extends Service { diff --git a/types/doubleclick-gpt/tslint.json b/types/doubleclick-gpt/tslint.json index 20e8c15a94..81f284a162 100644 --- a/types/doubleclick-gpt/tslint.json +++ b/types/doubleclick-gpt/tslint.json @@ -1,7 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false, "no-consecutive-blank-lines": false, "object-literal-key-quotes": false, "only-arrow-functions": false,