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

Function isComponent

modules/material-parser/src/parse/dynamic/index.ts:38–44  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

36}
37
38function isComponent(obj: any) {
39 return (
40 typeof obj === 'function' &&
41 (Object.prototype.hasOwnProperty.call(obj, 'propTypes') ||
42 Object.prototype.hasOwnProperty.call(obj, 'defaultProps'))
43 );
44}
45
46export default function (filePath: string) {
47 // const { filePath } = arg;

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…