diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-03 00:53:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-03 00:53:21 +0800 |
commit | c83587a16d016d1efafaf31abb9b39eb54128568 (patch) | |
tree | ac53dfb35344c644096f574802eb64eab5955f90 /src/utils/assert.ts | |
parent | b8ff2468776e1c784ff50e5ada1c633ee0d3aeda (diff) | |
parent | 3fad55d118b6a2f8f44ba5dec7fdae276c806eb3 (diff) | |
download | dexon-sol-tools-c83587a16d016d1efafaf31abb9b39eb54128568.tar dexon-sol-tools-c83587a16d016d1efafaf31abb9b39eb54128568.tar.gz dexon-sol-tools-c83587a16d016d1efafaf31abb9b39eb54128568.tar.bz2 dexon-sol-tools-c83587a16d016d1efafaf31abb9b39eb54128568.tar.lz dexon-sol-tools-c83587a16d016d1efafaf31abb9b39eb54128568.tar.xz dexon-sol-tools-c83587a16d016d1efafaf31abb9b39eb54128568.tar.zst dexon-sol-tools-c83587a16d016d1efafaf31abb9b39eb54128568.zip |
Merge pull request #30 from 0xProject/fillOrderAsync
fillOrderAsync
Diffstat (limited to 'src/utils/assert.ts')
-rw-r--r-- | src/utils/assert.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts index 1baf572d1..aeed1c6dc 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -27,6 +27,9 @@ export const assert = { isNumber(variableName: string, value: number): void { this.assert(_.isFinite(value), this.typeAssertionMessage(variableName, 'number', value)); }, + isBoolean(variableName: string, value: boolean): void { + this.assert(_.isBoolean(value), this.typeAssertionMessage(variableName, 'boolean', value)); + }, doesConformToSchema(variableName: string, value: object, schema: Schema): void { const schemaValidator = new SchemaValidator(); const validationResult = schemaValidator.validate(value, schema); |