Add type to cssRuleIfExists
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user