MCPcopy
hub / github.com/alibaba/lowcode-engine / isFileSchema

Function isFileSchema

packages/renderer-core/src/utils/common.ts:56–61  ·  view source on GitHub ↗
(schema: IPublicTypeNodeSchema)

Source from the content-addressed store, hash-verified

54 * @returns boolean
55 */
56export function isFileSchema(schema: IPublicTypeNodeSchema): schema is IPublicTypeRootSchema {
57 if (!isSchema(schema)) {
58 return false;
59 }
60 return ['Page', 'Block', 'Component'].includes(schema.componentName);
61}
62
63/**
64 * check if current page is nested within another page with same host

Callers 3

renderMethod · 0.90
BaseRendererClass · 0.90
common.test.tsFile · 0.90

Calls 1

isSchemaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…