mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
✏️ 类型修正
This commit is contained in:
8
src/types/BBS/Response.d.ts
vendored
8
src/types/BBS/Response.d.ts
vendored
@@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* @file types/BBS/Response.d.ts
|
* @file types/BBS/Response.d.ts
|
||||||
* @description BBS 返回数据类型定义文件
|
* @description BBS 返回数据类型定义文件
|
||||||
* @since Beta v0.3.4
|
* @since Beta v0.3.5
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description BBS 返回数据类型定义
|
* @description BBS 返回数据类型定义
|
||||||
* @since Beta v0.3.4
|
* @since Beta v0.3.5
|
||||||
* @namespace TGApp.BBS.Response
|
* @namespace TGApp.BBS.Response
|
||||||
* @memberof TGApp.BBS
|
* @memberof TGApp.BBS
|
||||||
*/
|
*/
|
||||||
@@ -14,14 +14,14 @@ declare namespace TGApp.BBS.Response {
|
|||||||
/**
|
/**
|
||||||
* @description 基础返回类型,设计米游社接口请求都是这个类型
|
* @description 基础返回类型,设计米游社接口请求都是这个类型
|
||||||
* @interface Base
|
* @interface Base
|
||||||
* @since Alpha v0.1.5
|
* @since Beta v0.3.5
|
||||||
* @property {number} retcode - 响应代码
|
* @property {number} retcode - 响应代码
|
||||||
* @property {string} message - 响应消息
|
* @property {string} message - 响应消息
|
||||||
* @property {any} data - 响应数据
|
* @property {any} data - 响应数据
|
||||||
* @return Base
|
* @return Base
|
||||||
*/
|
*/
|
||||||
interface Base {
|
interface Base {
|
||||||
retcode: Pick<number, 0>;
|
retcode: never;
|
||||||
message: string;
|
message: string;
|
||||||
data: never;
|
data: never;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user