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 /packages/instant/src/style | |
parent | 7bc9cd8c943972b2800e70fc6eaaf9c01ff5c488 (diff) | |
download | dexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.gz dexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.zst dexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.zip |
Add type to cssRuleIfExists
Diffstat (limited to 'packages/instant/src/style')
-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)) { |