From 78763116c3d4ce6c8f6ba6fd5aaa6e665cc4ffc7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?=
 <root@acid-chicken.com>
Date: Sun, 27 Jan 2019 19:41:41 +0900
Subject: [PATCH] Module 'nprogress' as import syntax (#4012)

---
 package.json                             | 1 +
 src/client/app/common/scripts/loading.ts | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package.json b/package.json
index b0c3cc2c66..2a4ee43fae 100644
--- a/package.json
+++ b/package.json
@@ -65,6 +65,7 @@
 		"@types/ms": "0.7.30",
 		"@types/node": "10.12.18",
 		"@types/nodemailer": "4.6.5",
+		"@types/nprogress": "0.0.29",
 		"@types/oauth": "0.9.1",
 		"@types/parsimmon": "1.10.0",
 		"@types/portscanner": "2.1.0",
diff --git a/src/client/app/common/scripts/loading.ts b/src/client/app/common/scripts/loading.ts
index c48e626648..70a3a4c85e 100644
--- a/src/client/app/common/scripts/loading.ts
+++ b/src/client/app/common/scripts/loading.ts
@@ -1,4 +1,4 @@
-const NProgress = require('nprogress');
+import * as NProgress from 'nprogress';
 NProgress.configure({
 	trickleSpeed: 500,
 	showSpinner: false