summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2019-02-04 01:30:33 +0900
committerAcid Chicken (硫酸鶏) <root@acid-chicken.com>2019-02-04 01:30:33 +0900
commitc4f74913225cc92d4285b6da0182b0daf62ca404 (patch)
tree9cfae79549579429c7b2c1ae2ebaaa0bd14f5640 /src
parentNew translations ja-JP.yml (Polish) (#4116) (diff)
downloadsharkey-c4f74913225cc92d4285b6da0182b0daf62ca404.tar.gz
sharkey-c4f74913225cc92d4285b6da0182b0daf62ca404.tar.bz2
sharkey-c4f74913225cc92d4285b6da0182b0daf62ca404.zip
Revert "Create new type definition for 'is-url' (#4013)"
This reverts commit 014b58cb4098c31c1d0d8d2ad521e48368491d07.
Diffstat (limited to 'src')
-rw-r--r--src/@types/is-url.d.ts7
-rw-r--r--src/config/load.ts2
2 files changed, 1 insertions, 8 deletions
diff --git a/src/@types/is-url.d.ts b/src/@types/is-url.d.ts
deleted file mode 100644
index c1ccadd498..0000000000
--- a/src/@types/is-url.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-declare module 'is-url' {
- function isUrl(string: string): boolean;
-
- namespace isUrl {} // Hack
-
- export = isUrl;
-}
diff --git a/src/config/load.ts b/src/config/load.ts
index 57cfb8075c..ba8b4af3ce 100644
--- a/src/config/load.ts
+++ b/src/config/load.ts
@@ -6,7 +6,7 @@ import * as fs from 'fs';
import { URL } from 'url';
import * as yaml from 'js-yaml';
import { Source, Mixin } from './types';
-import * as isUrl from 'is-url';
+import isUrl = require('is-url');
import * as pkg from '../../package.json';
/**