From dd4f32047b7d7d1e3f9c6024980fb59ba1d253fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Kov=C3=A1cs?= Date: Mon, 19 Dec 2016 17:42:13 +0100 Subject: [PATCH] [interact.js] Update module names (#13316) Update CommonJS module name as it was changed in version 1.2.7. AMD module name is also different from both new and old CommonJS module names, so a separate declaration was created for that as well. --- interact.js/index.d.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/interact.js/index.d.ts b/interact.js/index.d.ts index c9d15a2a5f..866ced2216 100644 --- a/interact.js/index.d.ts +++ b/interact.js/index.d.ts @@ -243,6 +243,17 @@ declare namespace Interact { declare var interact: Interact.InteractStatic; -declare module "interact.js" { +// CommonJS module name until version 1.2.6 is "interact.js" + declare module "interact.js" { + export = interact; + } + +// CommonJS module name from version 1.2.7 onward is "interactjs" +declare module "interactjs" { + export = interact; +} + +// AMD module name is "interact" +declare module "interact" { export = interact; }