Skip to content

Commit 46725cb

Browse files
committed
fix: fix tsconfig of material-parser
1 parent 6141c27 commit 46725cb

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

modules/material-parser/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alilc/lowcode-material-parser",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "material parser for Ali lowCode engine",
55
"main": "lib/index.js",
66
"files": [
@@ -61,5 +61,8 @@
6161
"publishConfig": {
6262
"access": "public",
6363
"registry": "https://registry.npmjs.org/"
64+
},
65+
"engines": {
66+
"node": ">=10.0.0"
6467
}
6568
}

modules/material-parser/src/core/schema/types.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ export interface Npm {
4141
[k: string]: any;
4242
}
4343
export interface PropsSection {
44-
props: {
44+
props: Array<{
4545
name: string;
4646
propType: PropType;
4747
description?: string;
4848
defaultValue?: any;
4949
[k: string]: any;
50-
}[];
50+
}>;
5151
[k: string]: any;
5252
}
5353
export interface RequiredType {
@@ -56,7 +56,7 @@ export interface RequiredType {
5656
}
5757
export interface OneOf {
5858
type: 'oneOf';
59-
value: (string | number | boolean)[];
59+
value: Array<string | number | boolean>;
6060
isRequired?: boolean;
6161
[k: string]: any;
6262
}
@@ -80,19 +80,19 @@ export interface ObjectOf {
8080
}
8181
export interface Shape {
8282
type: 'shape';
83-
value: {
83+
value: Array<{
8484
name?: string;
8585
propType?: PropType;
86-
}[];
86+
}>;
8787
isRequired?: boolean;
8888
[k: string]: any;
8989
}
9090
export interface Exact {
9191
type: 'exact';
92-
value: {
92+
value: Array<{
9393
name?: string;
9494
propType?: PropType;
95-
}[];
95+
}>;
9696
isRequired?: boolean;
9797
[k: string]: any;
9898
}

modules/material-parser/tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
// skip type checking of declaration files
99
"skipLibCheck": true,
1010
"baseUrl": "./packages",
11-
"allowJs": true
11+
"allowJs": true,
12+
"outDir": "lib",
13+
"lib": ["es2018"],
14+
"module": "commonjs",
15+
"target": "es2018"
1216
},
1317
"exclude": ["**/test", "**/lib", "**/dist", "**/es", "node_modules", "schemas"],
1418
"include": ["src/**/*"]

0 commit comments

Comments
 (0)