aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-22 22:21:56 +0800
committerGitHub <noreply@github.com>2017-06-22 22:21:56 +0800
commit94cab6f694027d47971d661bca33beac42f4ade1 (patch)
treec411ec567878a8178aa64313bd9b76dfcb455fc7 /src/types.ts
parent25a9ba90f508e0d147c060f60a9e3683e07d45e4 (diff)
downloaddexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.tar
dexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.tar.gz
dexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.tar.bz2
dexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.tar.lz
dexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.tar.xz
dexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.tar.zst
dexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.zip
Revert "Use different lodash import syntax which allows to include only used functions"
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.ts b/src/types.ts
index d9189c8a0..2b7fba226 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,10 +1,10 @@
-import reduce = require('lodash/reduce');
+import * as _ from 'lodash';
import * as Web3 from 'web3';
// Utility function to create a K:V from a list of strings
// Adapted from: https://basarat.gitbooks.io/typescript/content/docs/types/literal-types.html
function strEnum(values: string[]): {[key: string]: string} {
- return reduce(values, (result, key) => {
+ return _.reduce(values, (result, key) => {
result[key] = key;
return result;
}, Object.create(null));