From 1f5e81eed94bf596fbde404b092aae46f7491da2 Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Fri, 11 Jan 2019 10:05:33 +0000 Subject: [PATCH] Improve type definition for jwplayer() function. This function accepts a string element id, a numeric JW Player instance index, or a DOM element. It can also be omitted to select the first JW Player instance. --- types/jwplayer/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jwplayer/index.d.ts b/types/jwplayer/index.d.ts index 0ff7246202..10f1ac269b 100644 --- a/types/jwplayer/index.d.ts +++ b/types/jwplayer/index.d.ts @@ -363,7 +363,7 @@ interface JWPlayer { } interface JWPlayerStatic { - (id: string): JWPlayer; + (query?: string | number | Element): JWPlayer; key: string; version: string; }