mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
chore: fix ts errors
This commit is contained in:
parent
7c6c758d42
commit
108108cf51
@ -178,7 +178,8 @@ export interface IProjectBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 项目级别的前置处理器 */
|
/** 项目级别的前置处理器 */
|
||||||
export type ProjectPreProcessor = (schema: IPublicTypeProjectSchema) => Promise<IPublicTypeProjectSchema> | IPublicTypeProjectSchema;
|
export type ProjectPreProcessor = (schema: IPublicTypeProjectSchema) =>
|
||||||
|
Promise<IPublicTypeProjectSchema> | IPublicTypeProjectSchema;
|
||||||
|
|
||||||
export interface ProjectPostProcessorOptions {
|
export interface ProjectPostProcessorOptions {
|
||||||
parseResult?: IParseResult;
|
parseResult?: IParseResult;
|
||||||
|
|||||||
@ -126,7 +126,7 @@ function generateAttrs(
|
|||||||
if (props) {
|
if (props) {
|
||||||
if (!Array.isArray(props)) {
|
if (!Array.isArray(props)) {
|
||||||
Object.keys(props).forEach((propName: string) => {
|
Object.keys(props).forEach((propName: string) => {
|
||||||
pieces = pieces.concat(generateAttr(propName, props[propName], scope, config));
|
pieces = pieces.concat(generateAttr(propName, props[propName] as IPublicTypeCompositeValue, scope, config));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
props.forEach((prop) => {
|
props.forEach((prop) => {
|
||||||
|
|||||||
@ -101,7 +101,7 @@ export function handleSubNodes<T>(
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Object.values(child.props).forEach((value) => {
|
Object.values(child.props).forEach((value) => {
|
||||||
const childRes = handleCompositeValueInProps(value);
|
const childRes = handleCompositeValueInProps(value as IPublicTypeCompositeValue);
|
||||||
childrenRes.push(...childRes);
|
childrenRes.push(...childRes);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user