mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🏷️ 完善类型
This commit is contained in:
@@ -30,7 +30,6 @@
|
|||||||
<component :is="item" v-for="item in components" :key="item" @success="loadEnd(item)" />
|
<component :is="item" v-for="item in components" :key="item" @success="loadEnd(item)" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import TGameNav from "@comp/app/t-gameNav.vue";
|
import TGameNav from "@comp/app/t-gameNav.vue";
|
||||||
import showLoading from "@comp/func/loading.js";
|
import showLoading from "@comp/func/loading.js";
|
||||||
|
|||||||
12
src/plugins/Mys/types/SctPost.d.ts
vendored
12
src/plugins/Mys/types/SctPost.d.ts
vendored
@@ -7,14 +7,18 @@
|
|||||||
declare namespace TGApp.Plugins.Mys.SctPost {
|
declare namespace TGApp.Plugins.Mys.SctPost {
|
||||||
/**
|
/**
|
||||||
* @description 帖子结构化数据-基础类型
|
* @description 帖子结构化数据-基础类型
|
||||||
* @since Beta v0.4.5
|
* @since Beta v0.6.7
|
||||||
* @interface Base
|
* @interface Base
|
||||||
* @property {unknown} insert - 帖子内容
|
* @property {string | Record<string, unknown>} insert - 帖子内容
|
||||||
* @property {unknown} attributes - 帖子属性
|
* @property {Record<string, unknown>} attributes - 帖子属性
|
||||||
* @property {Base[]} children - 子帖子
|
* @property {Base[]} children - 子帖子
|
||||||
* @return Base
|
* @return Base
|
||||||
*/
|
*/
|
||||||
type Base = { insert: any; attributes?: any; children?: Base[] };
|
type Base = {
|
||||||
|
insert: string | Record<string, unknown>;
|
||||||
|
attributes?: Record<string, unknown>;
|
||||||
|
children?: Base[];
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 帖子结构化数据-空类型
|
* @description 帖子结构化数据-空类型
|
||||||
|
|||||||
Reference in New Issue
Block a user