MCPcopy
hub / github.com/vuejs/core / normalizeProps

Function normalizeProps

packages/shared/src/normalizeProp.ts:84–96  ·  view source on GitHub ↗
(
  props: Record<string, any> | null,
)

Source from the content-addressed store, hash-verified

82}
83
84export 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}

Callers 1

Calls 3

isStringFunction · 0.90
normalizeClassFunction · 0.85
normalizeStyleFunction · 0.85

Tested by

no test coverage detected