aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-11 07:48:27 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-11 07:48:27 +0800
commit0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981 (patch)
treef4707b944ae1b81cf46e3954c43632a603002828 /packages
parent7bc9cd8c943972b2800e70fc6eaaf9c01ff5c488 (diff)
downloaddexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar
dexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.gz
dexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.bz2
dexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.lz
dexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.xz
dexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.tar.zst
dexon-sol-tools-0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981.zip
Add type to cssRuleIfExists
Diffstat (limited to 'packages')
-rw-r--r--packages/instant/src/style/util.ts3
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)) {