From 80ce5678345a20a6b6d30e134965f53ada735044 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Mon, 29 May 2017 15:59:15 +0200 Subject: Add declarations for find-versions and compare-versions --- src/globals.d.ts | 14 ++++++++++++-- 1 file 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); declare module 'es6-promisify' { -- cgit v1.2.3