TypeParam 类型参数
用于泛型参数声明。在泛型数据结构、逻辑和函数中使用。
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface TypeParam {
"concept": "TypeParam", // 产品概念
"name": string, // 类型名称
}
class TypeParamTreeNode {
ConceptEnum concept; // 产品概念
String name; // 类型名称
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/TypeParam",
"definitions": {
"TypeParam": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "TypeParam"
},
"name": {
"type": "string"
}
},
"required": [
"concept",
"name"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "TypeParam",
"name": "T"
}
concept: TypeParam
name: T