From f87712a95ac883dac32c8af20550470e162330dc Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Fri, 11 Jan 2019 08:54:35 +0000 Subject: [PATCH] Fix violations of 'callable-types' lint rule. --- types/jwplayer/index.d.ts | 4 +--- types/jwplayer/tslint.json | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/types/jwplayer/index.d.ts b/types/jwplayer/index.d.ts index 0111370899..b7434c602a 100644 --- a/types/jwplayer/index.d.ts +++ b/types/jwplayer/index.d.ts @@ -231,9 +231,7 @@ interface FirstFrameParam extends CallbackParam { viewable: 0 | 1; } -interface EventCallback { - (param: T): void; -} +type EventCallback = (param: T) => void; interface Region { x: 0; // x and y will always be 0 according to https://developer.jwplayer.com/jw-player/docs/javascript-api-reference/#jwplayergetsaferegion diff --git a/types/jwplayer/tslint.json b/types/jwplayer/tslint.json index 4f1be58fd5..00e6c2de35 100644 --- a/types/jwplayer/tslint.json +++ b/types/jwplayer/tslint.json @@ -2,7 +2,6 @@ "extends": "dtslint/dt.json", "rules": { "adjacent-overload-signatures": false, - "callable-types": false, "dt-header": false, "no-empty-interface": false, "one-line": false,