FrontendType 端类型
1. 结构声明
- TS Declaration
- JSON Schema
class FrontendType extends BaseNode {
name: 'pc' | 'h5';
kind: 'pc' | 'h5';
frontends: Array<Frontend>;
businessComponents: Array<BusinessComponent>;
componentDependencies: Array<Module>;
}
{
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"pc",
"h5"
]
},
"kind": {
"type": "string",
"enum": [
"pc",
"h5"
]
},
"frontends": {
"type": "array",
"items": {
"$ref": "#/definitions/Frontend"
}
},
"businessComponents": {
"type": "array",
"items": {
"$ref": "#/definitions/BusinessComponent"
}
},
"componentDependencies": {
"type": "array",
"items": {
"$ref": "#/definitions/Module"
}
}
},
"required": [
"name",
"kind",
"frontends",
"businessComponents",
"componentDependencies"
],
"additionalProperties": false
}