♻️ 帖子文本解析部分重构

This commit is contained in:
目棃
2024-04-07 14:31:43 +08:00
parent 74eb612d72
commit f50398f6e3
14 changed files with 121 additions and 89 deletions

View File

@@ -1,27 +1,29 @@
/**
* @file plugins/Mys/types/SctPost.d.ts
* @description Mys 插件 结构化帖子类型声明文件
* @since Beta v0.3.7
* @since Beta v0.4.5
*/
/**
* @description 结构化帖子类型命名空间
* @since Beta v0.3.7
* @since Beta v0.4.5
* @namespace TGApp.Plugins.Mys.SctPost
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.SctPost {
/**
* @description 帖子结构化数据-基础类型
* @since Beta v0.3.4
* @since Beta v0.4.5
* @interface Base
* @property {unknown} insert - 帖子内容
* @property {unknown} attributes - 帖子属性
* @property {Base[]} children - 子帖子
* @return Base
*/
interface Base {
insert: any;
attributes?: any;
children?: Base[];
}
/**