From 1a51a3acf7cf3f0dbd16e9f6658c7fe90e3e4a91 Mon Sep 17 00:00:00 2001 From: Avi Vahl Date: Fri, 16 Feb 2018 00:49:06 +0200 Subject: [PATCH 1/2] Add proxy file for light hls.js dist allows importing Hls directly from the light file with type safety --- types/hls.js/dist/hls.light.d.ts | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 types/hls.js/dist/hls.light.d.ts diff --git a/types/hls.js/dist/hls.light.d.ts b/types/hls.js/dist/hls.light.d.ts new file mode 100644 index 0000000000..5795b12091 --- /dev/null +++ b/types/hls.js/dist/hls.light.d.ts @@ -0,0 +1,2 @@ +import Hls = require("../index"); +export = Hls; From bec06b6e115b7dc8269df52953bcd7cfdbe6a522 Mon Sep 17 00:00:00 2001 From: Avi Vahl Date: Fri, 16 Feb 2018 13:27:12 +0200 Subject: [PATCH 2/2] Add new hls.light.d.ts to tsconfig.json's list --- types/hls.js/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/types/hls.js/tsconfig.json b/types/hls.js/tsconfig.json index ed68ee32f3..17aacd07df 100644 --- a/types/hls.js/tsconfig.json +++ b/types/hls.js/tsconfig.json @@ -19,6 +19,7 @@ }, "files": [ "index.d.ts", + "dist/hls.light.d.ts", "hls.js-tests.ts" ] } \ No newline at end of file