mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-01 05:30:40 +00:00
feat: 🎸 添加一个判断 ContainerSchema 的 util 方便后续用
This commit is contained in:
parent
8b1d0c76f3
commit
c3fdfe5af2
5
packages/code-generator/src/utils/schema.ts
Normal file
5
packages/code-generator/src/utils/schema.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { ContainerSchema } from '@ali/lowcode-types';
|
||||
|
||||
export function isContainerSchema(x: any): x is ContainerSchema {
|
||||
return typeof x === 'object' && x && typeof x.componentName === 'string' && typeof x.fileName === 'string';
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user