From bcc73a6700e3a833cae32073e06c902e765658e9 Mon Sep 17 00:00:00 2001 From: Jonny Taylor Date: Sun, 18 Jun 2017 21:07:12 +0100 Subject: [PATCH 1/3] add mainloop.js export --- types/mainloop.js/index.d.ts | 4 ++++ types/mainloop.js/tsconfig.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/types/mainloop.js/index.d.ts b/types/mainloop.js/index.d.ts index f34d6f035a..e6263218c1 100644 --- a/types/mainloop.js/index.d.ts +++ b/types/mainloop.js/index.d.ts @@ -3,6 +3,10 @@ // Definitions by: Isaac Sukin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +declare module 'mainloop.js' { + export default MainLoop; +} + /** * Interface for the MainLoop.js global. * diff --git a/types/mainloop.js/tsconfig.json b/types/mainloop.js/tsconfig.json index 86c619379e..5dae699f05 100644 --- a/types/mainloop.js/tsconfig.json +++ b/types/mainloop.js/tsconfig.json @@ -20,4 +20,4 @@ "index.d.ts", "mainloop.js-tests.ts" ] -} \ No newline at end of file +} From 5ed1a965d0333151629b920e23b307c0ecc6948d Mon Sep 17 00:00:00 2001 From: Jonny Taylor Date: Thu, 29 Jun 2017 22:10:44 +0100 Subject: [PATCH 2/3] correct format for UMD module --- types/mainloop.js/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/mainloop.js/index.d.ts b/types/mainloop.js/index.d.ts index e6263218c1..f6162d2316 100644 --- a/types/mainloop.js/index.d.ts +++ b/types/mainloop.js/index.d.ts @@ -3,10 +3,6 @@ // Definitions by: Isaac Sukin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module 'mainloop.js' { - export default MainLoop; -} - /** * Interface for the MainLoop.js global. * @@ -30,3 +26,7 @@ interface MainLoop { } declare var MainLoop: MainLoop; + +export = MainLoop; +export as namespace MainLoop; + From 210fb742394434a18a79e5596ebc5cf7c142864c Mon Sep 17 00:00:00 2001 From: Jonny Taylor Date: Thu, 29 Jun 2017 22:24:27 +0100 Subject: [PATCH 3/3] remove extra line --- types/mainloop.js/index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/mainloop.js/index.d.ts b/types/mainloop.js/index.d.ts index f6162d2316..98c916d354 100644 --- a/types/mainloop.js/index.d.ts +++ b/types/mainloop.js/index.d.ts @@ -29,4 +29,3 @@ declare var MainLoop: MainLoop; export = MainLoop; export as namespace MainLoop; -