diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-11 07:48:27 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-11 07:48:27 +0800 |
commit | 0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981 (patch) | |
tree | f4707b944ae1b81cf46e3954c43632a603002828 | |
parent | 7bc9cd8c943972b2800e70fc6eaaf9c01ff5c488 (diff) | |
download | dexon-0x-contracts-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar dexon-0x-contracts-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.gz dexon-0x-contracts-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.bz2 dexon-0x-contracts-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.lz dexon-0x-contracts-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.xz dexon-0x-contracts-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.zst dexon-0x-contracts-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.zip |
Add type to cssRuleIfExists
-rw-r--r-- | packages/instant/src/style/util.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/style/util.ts b/packages/instant/src/style/util.ts index 7cf13133f..c9df0f834 100644 --- a/packages/instant/src/style/util.ts +++ b/packages/instant/src/style/util.ts @@ -1,6 +1,7 @@ +import { ObjectMap } from '@0xproject/types'; import * as _ from 'lodash'; -export const cssRuleIfExists = (props: any, rule: string): string => { +export const cssRuleIfExists = (props: ObjectMap<any>, rule: string): string => { const camelCaseRule = _.camelCase(rule); const ruleValueIfExists = props[camelCaseRule]; if (!_.isUndefined(ruleValueIfExists)) { |