diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-28 02:04:27 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-28 02:04:27 +0800 |
commit | 75711f348a09ce666059f76e38e74682463ccaf7 (patch) | |
tree | 27934c3bb82c230f2b6d6a1b4cfffaec708bc759 /src | |
parent | 56cfb41d54e012864fa9f557a8008f57de6c4267 (diff) | |
download | dexon-sol-tools-75711f348a09ce666059f76e38e74682463ccaf7.tar.gz dexon-sol-tools-75711f348a09ce666059f76e38e74682463ccaf7.tar.zst dexon-sol-tools-75711f348a09ce666059f76e38e74682463ccaf7.zip |
Remove custom Schema type and use one from jsonschema
Diffstat (limited to 'src')
-rw-r--r-- | src/globals.d.ts | 4 | ||||
-rw-r--r-- | src/utils/assert.ts | 1 | ||||
-rw-r--r-- | src/utils/schema_validator.ts | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts index 4a0a3fb04..6a4e8d3a7 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -7,10 +7,6 @@ declare module 'request-promise-native'; declare module 'web3-provider-engine'; declare module 'web3-provider-engine/subproviders/rpc'; -declare interface Schema { - id: string; -} - // HACK: In order to merge the bignumber declaration added by chai-bignumber to the chai Assertion // interface we must use `namespace` as the Chai definitelyTyped definition does. Since we otherwise // disallow `namespace`, we disable tslint for the following. diff --git a/src/utils/assert.ts b/src/utils/assert.ts index 94b119d5a..38c1d4aae 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -2,6 +2,7 @@ import * as _ from 'lodash'; import * as BigNumber from 'bignumber.js'; import * as Web3 from 'web3'; import {Web3Wrapper} from '../web3_wrapper'; +import {Schema} from 'jsonschema'; import {SchemaValidator} from './schema_validator'; import {utils} from './utils'; diff --git a/src/utils/schema_validator.ts b/src/utils/schema_validator.ts index 9097dce88..e3f911adb 100644 --- a/src/utils/schema_validator.ts +++ b/src/utils/schema_validator.ts @@ -1,4 +1,4 @@ -import {Validator, ValidatorResult} from 'jsonschema'; +import {Validator, ValidatorResult, Schema} from 'jsonschema'; import {ecSignatureSchema, ecSignatureParameterSchema} from '../schemas/ec_signature_schema'; import {orderSchema, signedOrderSchema} from '../schemas/order_schemas'; import {addressSchema, numberSchema} from '../schemas/basic_type_schemas'; |