GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: fix ts errors · sopig/lowcode-engine@108108c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • modules/code-generator/src
    • types
      • core.ts
    • utils
      • nodeToJSX.ts
      • schema.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎modules/code-generator/src/types/core.ts‎

Copy file name to clipboardExpand all lines: modules/code-generator/src/types/core.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ export interface IProjectBuilder {
178178
}
179179

180180
/** 项目级别的前置处理器 */
181-
export type ProjectPreProcessor = (schema: IPublicTypeProjectSchema) => Promise<IPublicTypeProjectSchema> | IPublicTypeProjectSchema;
181+
export type ProjectPreProcessor = (schema: IPublicTypeProjectSchema) =>
182+
Promise<IPublicTypeProjectSchema> | IPublicTypeProjectSchema;
182183

183184
export interface ProjectPostProcessorOptions {
184185
parseResult?: IParseResult;
Collapse file

‎modules/code-generator/src/utils/nodeToJSX.ts‎

Copy file name to clipboardExpand all lines: modules/code-generator/src/utils/nodeToJSX.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function generateAttrs(
126126
if (props) {
127127
if (!Array.isArray(props)) {
128128
Object.keys(props).forEach((propName: string) => {
129-
pieces = pieces.concat(generateAttr(propName, props[propName], scope, config));
129+
pieces = pieces.concat(generateAttr(propName, props[propName] as IPublicTypeCompositeValue, scope, config));
130130
});
131131
} else {
132132
props.forEach((prop) => {
Collapse file

‎modules/code-generator/src/utils/schema.ts‎

Copy file name to clipboardExpand all lines: modules/code-generator/src/utils/schema.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function handleSubNodes<T>(
101101
});
102102
} else {
103103
Object.values(child.props).forEach((value) => {
104-
const childRes = handleCompositeValueInProps(value);
104+
const childRes = handleCompositeValueInProps(value as IPublicTypeCompositeValue);
105105
childrenRes.push(...childRes);
106106
});
107107
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.