LogicDeclaration 逻辑声明
1. 结构声明
- TS Declaration
- JSON Schema
class LogicDeclaration extends BaseNode {
name: string = '';
title: string;
description: string;
typeParams?: Array<TypeParam>;
params: Array<Param>;
returns: Array<Return>;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"typeParams": {
"type": "array",
"items": {
"$ref": "#/definitions/TypeParam"
}
},
"params": {
"type": "array",
"items": {
"$ref": "#/definitions/Param"
}
},
"returns": {
"type": "array",
"items": {
"$ref": "#/definitions/Return"
}
}
},
"required": [
"name",
"title",
"description",
"params",
"returns"
],
"additionalProperties": false
}