diff --git a/src/0x.ts b/src/0x.ts index eee74b21b5..71acf0438e 100644 --- a/src/0x.ts +++ b/src/0x.ts @@ -1,4 +1,4 @@ -import isUndefined from 'lodash/isUndefined'; +import isUndefined = require('lodash/isUndefined'); import * as BigNumber from 'bignumber.js'; import {bigNumberConfigs} from './bignumber_config'; import * as ethUtil from 'ethereumjs-util'; diff --git a/src/contract_wrappers/contract_wrapper.ts b/src/contract_wrappers/contract_wrapper.ts index dd403ce8bd..f5d2cd4eb3 100644 --- a/src/contract_wrappers/contract_wrapper.ts +++ b/src/contract_wrappers/contract_wrapper.ts @@ -1,5 +1,5 @@ -import includes from 'lodash/includes'; -import isUndefined from 'lodash/isUndefined'; +import includes = require('lodash/includes'); +import isUndefined = require('lodash/isUndefined'); import contract = require('truffle-contract'); import {Web3Wrapper} from '../web3_wrapper'; import {ZeroExError, Artifact, ContractInstance} from '../types'; diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 4f9d03539f..6d42dc1100 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -1,8 +1,8 @@ -import map from 'lodash/map'; -import isEmpty from 'lodash/isEmpty'; -import find from 'lodash/find'; -import isUndefined from 'lodash/isUndefined'; -import unzip from 'lodash/unzip'; +import map = require('lodash/map'); +import isEmpty = require('lodash/isEmpty'); +import find = require('lodash/find'); +import isUndefined = require('lodash/isUndefined'); +import unzip = require('lodash/unzip'); import * as BigNumber from 'bignumber.js'; import promisify = require('es6-promisify'); import {Web3Wrapper} from '../web3_wrapper'; diff --git a/src/contract_wrappers/token_registry_wrapper.ts b/src/contract_wrappers/token_registry_wrapper.ts index dd27192a7d..971b2d43ca 100644 --- a/src/contract_wrappers/token_registry_wrapper.ts +++ b/src/contract_wrappers/token_registry_wrapper.ts @@ -1,5 +1,5 @@ -import map from 'lodash/map'; -import isUndefined from 'lodash/isUndefined'; +import map = require('lodash/map'); +import isUndefined = require('lodash/isUndefined'); import {Web3Wrapper} from '../web3_wrapper'; import {Token, TokenRegistryContract, TokenMetadata} from '../types'; import {assert} from '../utils/assert'; diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts index ea24b59016..5db7248e88 100644 --- a/src/contract_wrappers/token_wrapper.ts +++ b/src/contract_wrappers/token_wrapper.ts @@ -1,4 +1,4 @@ -import isUndefined from 'lodash/isUndefined'; +import isUndefined = require('lodash/isUndefined'); import * as BigNumber from 'bignumber.js'; import {Web3Wrapper} from '../web3_wrapper'; import {assert} from '../utils/assert'; diff --git a/src/types.ts b/src/types.ts index e08d7f963f..d59ed67cf1 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,4 @@ -import reduce from 'lodash/reduce'; +import reduce = require('lodash/reduce'); import * as Web3 from 'web3'; // Utility function to create a K:V from a list of strings diff --git a/src/utils/assert.ts b/src/utils/assert.ts index c4f1915e7e..efc7ed3663 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -1,10 +1,10 @@ -import uniq from 'lodash/uniq'; -import isEmpty from 'lodash/isEmpty'; -import isObject from 'lodash/isObject'; -import isFinite from 'lodash/isFinite'; -import isString from 'lodash/isString'; -import isBoolean from 'lodash/isBoolean'; -import isUndefined from 'lodash/isUndefined'; +import uniq = require('lodash/uniq'); +import isEmpty = require('lodash/isEmpty'); +import isObject = require('lodash/isObject'); +import isFinite = require('lodash/isFinite'); +import isString = require('lodash/isString'); +import isBoolean = require('lodash/isBoolean'); +import isUndefined = require('lodash/isUndefined'); import * as BigNumber from 'bignumber.js'; import * as Web3 from 'web3'; import {Web3Wrapper} from '../web3_wrapper'; diff --git a/src/utils/decorators.ts b/src/utils/decorators.ts index f8786dbbef..b06e967474 100644 --- a/src/utils/decorators.ts +++ b/src/utils/decorators.ts @@ -1,4 +1,4 @@ -import includes from 'lodash/includes'; +import includes = require('lodash/includes'); import {constants} from './constants'; import {AsyncMethod, ZeroExError} from '../types'; diff --git a/src/utils/utils.ts b/src/utils/utils.ts index e4e7b77abb..2db611ccbd 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -1,5 +1,5 @@ -import map from 'lodash/map'; -import includes from 'lodash/includes'; +import map = require('lodash/map'); +import includes = require('lodash/includes'); import * as BN from 'bn.js'; import * as ethABI from 'ethereumjs-abi'; import * as ethUtil from 'ethereumjs-util'; diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts index 7218b57395..d7cf6df584 100644 --- a/src/web3_wrapper.ts +++ b/src/web3_wrapper.ts @@ -1,4 +1,4 @@ -import includes from 'lodash/includes'; +import includes = require('lodash/includes'); import * as Web3 from 'web3'; import * as BigNumber from 'bignumber.js'; import promisify = require('es6-promisify'); diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index b8e387f042..e50a6018cb 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -1,5 +1,5 @@ -import each from 'lodash/each'; -import assign from 'lodash/assign'; +import each = require('lodash/each'); +import assign = require('lodash/assign'); import * as chai from 'chai'; import {chaiSetup} from './utils/chai_setup'; import 'mocha'; diff --git a/test/schema_test.ts b/test/schema_test.ts index 28abdc2c3e..72b08581ae 100644 --- a/test/schema_test.ts +++ b/test/schema_test.ts @@ -1,5 +1,5 @@ import 'mocha'; -import forEach from 'lodash/forEach'; +import forEach = require('lodash/forEach'); import * as chai from 'chai'; import * as BigNumber from 'bignumber.js'; import promisify = require('es6-promisify'); diff --git a/test/token_registry_wrapper_test.ts b/test/token_registry_wrapper_test.ts index 74a02aa407..d7c8a7a951 100644 --- a/test/token_registry_wrapper_test.ts +++ b/test/token_registry_wrapper_test.ts @@ -1,4 +1,4 @@ -import each from 'lodash/each'; +import each = require('lodash/each'); import 'mocha'; import * as chai from 'chai'; import {chaiSetup} from './utils/chai_setup'; diff --git a/test/utils/order_factory.ts b/test/utils/order_factory.ts index ec16df22d9..939d5df205 100644 --- a/test/utils/order_factory.ts +++ b/test/utils/order_factory.ts @@ -1,5 +1,5 @@ -import assign from 'lodash/assign'; -import isUndefined from 'lodash/isUndefined'; +import assign = require('lodash/assign'); +import isUndefined = require('lodash/isUndefined'); import * as BigNumber from 'bignumber.js'; import {ZeroEx, SignedOrder} from '../../src'; diff --git a/test/utils/token_utils.ts b/test/utils/token_utils.ts index 658cfe864d..00fa552606 100644 --- a/test/utils/token_utils.ts +++ b/test/utils/token_utils.ts @@ -1,6 +1,6 @@ -import find from 'lodash/find'; -import filter from 'lodash/filter'; -import isUndefined from 'lodash/isUndefined'; +import find = require('lodash/find'); +import filter = require('lodash/filter'); +import isUndefined = require('lodash/isUndefined'); import {Token, ZeroExError} from '../../src'; const PROTOCOL_TOKEN_SYMBOL = 'ZRX'; diff --git a/tsconfig.json b/tsconfig.json index beecbbf0bb..e26c01048d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,6 @@ "declaration": true, "noImplicitAny": true, "experimentalDecorators": true, - "allowSyntheticDefaultImports": true, "strictNullChecks": true }, "include": [