mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
[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:
Vendored
+12
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user