aboutsummaryrefslogtreecommitdiffstats
path: root/packages
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 /packages
parentf88ecaa035352a511fbee1ff1846cdacd03ca169 (diff)
downloaddexon-sol-tools-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar
dexon-sol-tools-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.gz
dexon-sol-tools-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.bz2
dexon-sol-tools-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.lz
dexon-sol-tools-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.xz
dexon-sol-tools-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.zst
dexon-sol-tools-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.zip
Type to-snake-case
Diffstat (limited to 'packages')
-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';