MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / isValidProps

Function isValidProps

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

Source from the content-addressed store, hash-verified

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

Callers 1

isSchemaFunction · 0.85

Calls 1

isJSExpressionFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…