aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/typed-contracts/src/globals.d.ts5
-rw-r--r--packages/typed-contracts/src/index.ts2
2 files changed, 5 insertions, 2 deletions
diff --git a/packages/typed-contracts/src/globals.d.ts b/packages/typed-contracts/src/globals.d.ts
index 80c6a8b8e..39df3f852 100644
--- a/packages/typed-contracts/src/globals.d.ts
+++ b/packages/typed-contracts/src/globals.d.ts
@@ -1 +1,4 @@
-declare module 'to-snake-case';
+declare function toSnakeCase(str: string): string;
+declare module 'to-snake-case' {
+ export = toSnakeCase;
+}
diff --git a/packages/typed-contracts/src/index.ts b/packages/typed-contracts/src/index.ts
index baa3ebc91..1ded558c3 100644
--- a/packages/typed-contracts/src/index.ts
+++ b/packages/typed-contracts/src/index.ts
@@ -8,7 +8,7 @@ import * as _ from 'lodash';
import * as mkdirp from 'mkdirp';
import * as yargs from 'yargs';
-import * as toSnakeCase from 'to-snake-case';
+import toSnakeCase = require('to-snake-case');
import * as Web3 from 'web3';
import {ParamKind} from './types';