From 8fbbfdbe4638e0bcc50c054909c3941eb86d1b46 Mon Sep 17 00:00:00 2001 From: Robert Prib Date: Tue, 28 Nov 2017 14:16:46 +0000 Subject: [PATCH] Updated tslint:disabled with more specific rules and included comment for explanation for need to ignore. --- types/leaflet/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 34dd9b5cc8..cc18a5a89f 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -247,13 +247,15 @@ export abstract class Evented extends Class { * Note that if you passed a custom context to on, you must pass the same context * to off in order to remove the listener. */ - // tslint:disable-next-line + // With an eventMap there are no additional arguments allowed + // tslint:disable-next-line:unified-signatures off(type: string, fn?: LeafletEventHandlerFn, context?: any): this; /** * Removes a set of type/listener pairs. */ - // tslint:disable-next-line + // With an eventMap there are no additional arguments allowed + // tslint:disable-next-line:unified-signatures off(eventMap: LeafletEventHandlerFnMap): this; /** * Removes all listeners to all events on the object.