diff --git a/types/jwplayer/index.d.ts b/types/jwplayer/index.d.ts index 87a7526267..cb40e26da7 100644 --- a/types/jwplayer/index.d.ts +++ b/types/jwplayer/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Martin Duparc // Tomer Kruvi // Philipp Gürtler +// Daniel McGraw // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // JW Player is the leading HTML5 & Flash video player, optimized for mobile and the desktop. Easy enough for beginners, advanced enough for pros. @@ -254,7 +255,8 @@ interface JWPlayer { getSafeRegion(): Region; getState(): string; getVolume(): number; - getEnvironment(): Environment; + getContainer(): HTMLElement; + getEnvironment(): Environment; getWidth(): number; load(playlist: any[]): void; load(playlist: string): void; diff --git a/types/jwplayer/tsconfig.json b/types/jwplayer/tsconfig.json index abf333c6bf..71e6b79545 100644 --- a/types/jwplayer/tsconfig.json +++ b/types/jwplayer/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es6", + "dom" ], "noImplicitAny": true, "noImplicitThis": true, @@ -19,4 +20,4 @@ "files": [ "index.d.ts" ] -} \ No newline at end of file +}