[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.
This commit is contained in:
Péter Kovács
2016-12-19 08:42:13 -08:00
committed by Andy
parent 398e713c20
commit dd4f32047b
+12 -1
View File
@@ -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;
}