UNPKG

timered-counter

Version:

Make the value change more vivid and natural

22 lines 714 B
import { toCamelCase } from 'remeda'; export function formatProps(props) { const formattedProps = {}; for (const [key, value] of Object.entries(props)) { if (value === undefined || value === null) { continue; } switch (key) { case 'onTimeredCounterAnimationStart': case 'onTimeredCounterAnimationEnd': // @ts-ignore formattedProps[toCamelCase(key)] = props[key]; break; default: // @ts-ignore formattedProps[`.${toCamelCase(key)}`] = props[key]; break; } } return formattedProps; } //# sourceMappingURL=format-props.js.map