aboutsummaryrefslogtreecommitdiffstats
path: root/src/globals.d.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-29 21:59:15 +0800
committerFabio Berger <me@fabioberger.com>2017-05-29 21:59:15 +0800
commit80ce5678345a20a6b6d30e134965f53ada735044 (patch)
tree055c999e32caf1db9e6ba76e9751ecd393fb332c /src/globals.d.ts
parent8d5d330ced6c1f0c2c279c17f856b082e3f56c49 (diff)
downloaddexon-sol-tools-80ce5678345a20a6b6d30e134965f53ada735044.tar
dexon-sol-tools-80ce5678345a20a6b6d30e134965f53ada735044.tar.gz
dexon-sol-tools-80ce5678345a20a6b6d30e134965f53ada735044.tar.bz2
dexon-sol-tools-80ce5678345a20a6b6d30e134965f53ada735044.tar.lz
dexon-sol-tools-80ce5678345a20a6b6d30e134965f53ada735044.tar.xz
dexon-sol-tools-80ce5678345a20a6b6d30e134965f53ada735044.tar.zst
dexon-sol-tools-80ce5678345a20a6b6d30e134965f53ada735044.zip
Add declarations for find-versions and compare-versions
Diffstat (limited to 'src/globals.d.ts')
-rw-r--r--src/globals.d.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts
index 78b768dd1..4a50e831b 100644
--- a/src/globals.d.ts
+++ b/src/globals.d.ts
@@ -3,8 +3,6 @@ declare module 'bn.js';
declare module 'request-promise-native';
declare module 'web3-provider-engine';
declare module 'web3-provider-engine/subproviders/rpc';
-declare module 'find-versions';
-declare module 'compare-versions';
declare interface Schema {
id: string;
@@ -55,6 +53,18 @@ declare module 'truffle-contract' {
export = contract;
}
+// find-version declarations
+declare function findVersions(version: string): string[];
+declare module 'find-versions' {
+ export = findVersions;
+}
+
+// compare-version declarations
+declare function compareVersions(firstVersion: string, secondVersion: string): number;
+declare module 'compare-versions' {
+ export = compareVersions;
+}
+
// es6-promisify declarations
declare function promisify(original: any, settings?: any): ((...arg: any[]) => Promise<any>);
declare module 'es6-promisify' {