mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-10 18:03:01 +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 {
|
||||
parseResult?: IParseResult;
|
||||
|
||||
@ -126,7 +126,7 @@ function generateAttrs(
|
||||
if (props) {
|
||||
if (!Array.isArray(props)) {
|
||||
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 {
|
||||
props.forEach((prop) => {
|
||||
|
||||
@ -101,7 +101,7 @@ export function handleSubNodes<T>(
|
||||
});
|
||||
} else {
|
||||
Object.values(child.props).forEach((value) => {
|
||||
const childRes = handleCompositeValueInProps(value);
|
||||
const childRes = handleCompositeValueInProps(value as IPublicTypeCompositeValue);
|
||||
childrenRes.push(...childRes);
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user