( props: Record<string, any> | null, )
| 82 | } |
| 83 | |
| 84 | export function normalizeProps( |
| 85 | props: Record<string, any> | null, |
| 86 | ): Record<string, any> | null { |
| 87 | if (!props) return null |
| 88 | let { class: klass, style } = props |
| 89 | if (klass && !isString(klass)) { |
| 90 | props.class = normalizeClass(klass) |
| 91 | } |
| 92 | if (style) { |
| 93 | props.style = normalizeStyle(style) |
| 94 | } |
| 95 | return props |
| 96 | } |
no test coverage detected