aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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' {