From ebf272aface38c11047499fc62dffaf77d989f22 Mon Sep 17 00:00:00 2001 From: Borys Kupar Date: Thu, 28 Feb 2019 13:32:55 +0100 Subject: [PATCH 1/2] [moment-timezone] Add support for "moment-timezone/moment-timezone" import --- types/moment-timezone/index.d.ts | 1 + types/moment-timezone/moment-timezone.d.ts | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 types/moment-timezone/moment-timezone.d.ts diff --git a/types/moment-timezone/index.d.ts b/types/moment-timezone/index.d.ts index 95a8621fdd..9d365f01b4 100644 --- a/types/moment-timezone/index.d.ts +++ b/types/moment-timezone/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Michel Salib // Alan Brazil Lins // Agustin Carrasco +// Borys Kupar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import moment = require('moment'); diff --git a/types/moment-timezone/moment-timezone.d.ts b/types/moment-timezone/moment-timezone.d.ts new file mode 100644 index 0000000000..4f06f7e4f1 --- /dev/null +++ b/types/moment-timezone/moment-timezone.d.ts @@ -0,0 +1,3 @@ +import moment = require('moment'); + +export = moment; From 527ba73ec799dd660cbecaa74d531d294fde2857 Mon Sep 17 00:00:00 2001 From: Borys Kupar Date: Thu, 28 Feb 2019 14:05:54 +0100 Subject: [PATCH 2/2] Adjust tsconfig --- types/moment-timezone/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/moment-timezone/tsconfig.json b/types/moment-timezone/tsconfig.json index 62cbfb4214..55ec6cf7bb 100644 --- a/types/moment-timezone/tsconfig.json +++ b/types/moment-timezone/tsconfig.json @@ -18,6 +18,7 @@ }, "files": [ "index.d.ts", + "moment-timezone.d.ts", "moment-timezone-tests.ts" ] -} \ No newline at end of file +}