diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 22:04:01 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 22:04:01 +0800 |
commit | dc5f4ab28b5ee23fba9f7699124a137c83b060ce (patch) | |
tree | 30ab843ba1fb4be4e2663aaf2894dd0bb2a18728 /packages | |
parent | f88ecaa035352a511fbee1ff1846cdacd03ca169 (diff) | |
download | dexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.gz dexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.tar.zst dexon-0x-contracts-dc5f4ab28b5ee23fba9f7699124a137c83b060ce.zip |
Type to-snake-case
Diffstat (limited to 'packages')
-rw-r--r-- | packages/typed-contracts/src/globals.d.ts | 5 | ||||
-rw-r--r-- | packages/typed-contracts/src/index.ts | 2 |
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'; |