MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / isValidProps

Function isValidProps

packages/renderer-core/src/utils/common.ts:43–48  ·  view source on GitHub ↗
(props: any)

Source from the content-addressed store, hash-verified

41 }
42 // check if props is valid
43 const isValidProps = (props: any) => {
44 if (!props) {
45 return false
46 }
47 return typeof schema.props === 'object' && !Array.isArray(props)
48 }
49 return !!(schema.componentName && isValidProps(schema.props))
50}
51

Callers 1

isSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected