aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-05 22:04:01 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-05 22:04:01 +0800
commitdc5f4ab28b5ee23fba9f7699124a137c83b060ce (patch)
tree30ab843ba1fb4be4e2663aaf2894dd0bb2a18728
parentf88ecaa035352a511fbee1ff1846cdacd03ca169 (diff)
downloaddexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar
dexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.gz
dexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.bz2
dexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.lz
dexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.xz
dexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.zst
dexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.zip
Type to-snake-case
-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';