fix: fix tsconfig of material-parser

This commit is contained in:
akirakai 2022-02-22 16:04:17 +08:00
parent 6141c273c9
commit 46725cb9f3
3 changed files with 16 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-material-parser",
"version": "1.0.0",
"version": "1.0.1",
"description": "material parser for Ali lowCode engine",
"main": "lib/index.js",
"files": [
@ -61,5 +61,8 @@
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=10.0.0"
}
}

View File

@ -41,13 +41,13 @@ export interface Npm {
[k: string]: any;
}
export interface PropsSection {
props: {
props: Array<{
name: string;
propType: PropType;
description?: string;
defaultValue?: any;
[k: string]: any;
}[];
}>;
[k: string]: any;
}
export interface RequiredType {
@ -56,7 +56,7 @@ export interface RequiredType {
}
export interface OneOf {
type: 'oneOf';
value: (string | number | boolean)[];
value: Array<string | number | boolean>;
isRequired?: boolean;
[k: string]: any;
}
@ -80,19 +80,19 @@ export interface ObjectOf {
}
export interface Shape {
type: 'shape';
value: {
value: Array<{
name?: string;
propType?: PropType;
}[];
}>;
isRequired?: boolean;
[k: string]: any;
}
export interface Exact {
type: 'exact';
value: {
value: Array<{
name?: string;
propType?: PropType;
}[];
}>;
isRequired?: boolean;
[k: string]: any;
}

View File

@ -8,7 +8,11 @@
// skip type checking of declaration files
"skipLibCheck": true,
"baseUrl": "./packages",
"allowJs": true
"allowJs": true,
"outDir": "lib",
"lib": ["es2018"],
"module": "commonjs",
"target": "es2018"
},
"exclude": ["**/test", "**/lib", "**/dist", "**/es", "node_modules", "schemas"],
"include": ["src/**/*"]