Fall back to import x = require() syntax
This commit is contained in:
@@ -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';
|
||||
|
@@ -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';
|
||||
|
@@ -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';
|
||||
|
@@ -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';
|
||||
|
@@ -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';
|
||||
|
@@ -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
|
||||
|
@@ -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';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import includes from 'lodash/includes';
|
||||
import includes = require('lodash/includes');
|
||||
import {constants} from './constants';
|
||||
import {AsyncMethod, ZeroExError} from '../types';
|
||||
|
||||
|
@@ -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';
|
||||
|
@@ -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');
|
||||
|
@@ -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';
|
||||
|
@@ -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');
|
||||
|
@@ -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';
|
||||
|
@@ -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';
|
||||
|
||||
|
@@ -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';
|
||||
|
@@ -8,7 +8,6 @@
|
||||
"declaration": true,
|
||||
"noImplicitAny": true,
|
||||
"experimentalDecorators": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strictNullChecks": true
|
||||
},
|
||||
"include": [
|
||||
|
Reference in New Issue
Block a user