GeezerVison is showing github.com — fix: fix tsconfig of material-parser · gq2010/lowcode-engine@46725cb
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: modules/material-parser/package.json +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | 2 | "name": "@alilc/lowcode-material-parser", | 3 | | - "version": "1.0.0", | | 3 | + "version": "1.0.1", | 4 | 4 | "description": "material parser for Ali lowCode engine", | 5 | 5 | "main": "lib/index.js", | 6 | 6 | "files": [ | | 61 | 61 | "publishConfig": { | 62 | 62 | "access": "public", | 63 | 63 | "registry": "https://registry.npmjs.org/" | | 64 | + }, | | 65 | + "engines": { | | 66 | + "node": ">=10.0.0" | 64 | 67 | } | 65 | 68 | } |
Collapse file Copy file name to clipboardExpand all lines: modules/material-parser/src/core/schema/types.ts +7-7Lines changed: 7 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -41,13 +41,13 @@ export interface Npm { | 41 | 41 | [k: string]: any; | 42 | 42 | } | 43 | 43 | export interface PropsSection { | 44 | | - props: { | | 44 | + props: Array<{ | 45 | 45 | name: string; | 46 | 46 | propType: PropType; | 47 | 47 | description?: string; | 48 | 48 | defaultValue?: any; | 49 | 49 | [k: string]: any; | 50 | | - }[]; | | 50 | + }>; | 51 | 51 | [k: string]: any; | 52 | 52 | } | 53 | 53 | export interface RequiredType { | @@ -56,7 +56,7 @@ export interface RequiredType { | 56 | 56 | } | 57 | 57 | export interface OneOf { | 58 | 58 | type: 'oneOf'; | 59 | | - value: (string | number | boolean)[]; | | 59 | + value: Array<string | number | boolean>; | 60 | 60 | isRequired?: boolean; | 61 | 61 | [k: string]: any; | 62 | 62 | } | @@ -80,19 +80,19 @@ export interface ObjectOf { | 80 | 80 | } | 81 | 81 | export interface Shape { | 82 | 82 | type: 'shape'; | 83 | | - value: { | | 83 | + value: Array<{ | 84 | 84 | name?: string; | 85 | 85 | propType?: PropType; | 86 | | - }[]; | | 86 | + }>; | 87 | 87 | isRequired?: boolean; | 88 | 88 | [k: string]: any; | 89 | 89 | } | 90 | 90 | export interface Exact { | 91 | 91 | type: 'exact'; | 92 | | - value: { | | 92 | + value: Array<{ | 93 | 93 | name?: string; | 94 | 94 | propType?: PropType; | 95 | | - }[]; | | 95 | + }>; | 96 | 96 | isRequired?: boolean; | 97 | 97 | [k: string]: any; | 98 | 98 | } | |
Collapse file Copy file name to clipboardExpand all lines: modules/material-parser/tsconfig.json +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | // skip type checking of declaration files | 9 | 9 | "skipLibCheck": true, | 10 | 10 | "baseUrl": "./packages", | 11 | | - "allowJs": true | | 11 | + "allowJs": true, | | 12 | + "outDir": "lib", | | 13 | + "lib": ["es2018"], | | 14 | + "module": "commonjs", | | 15 | + "target": "es2018" | 12 | 16 | }, | 13 | 17 | "exclude": ["**/test", "**/lib", "**/dist", "**/es", "node_modules", "schemas"], | 14 | 18 | "include": ["src/**/*"] | |
|