Add type to cssRuleIfExists

This commit is contained in:
fragosti
2018-10-10 16:48:27 -07:00
parent 7bc9cd8c94
commit 0aa7bfab0d

View File

@@ -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)) {