feat: fix typescript

pull/31/head
orzi! 4 years ago
parent d5e205ca85
commit c170f7ea6a

@ -28,7 +28,7 @@ declare module Item {
/** 评论者UID */ /** 评论者UID */
user_id: number, user_id: number,
/** 类别:1为标题,2为文字段落,3为图片地址,4为视频地址,5为语音地址,6为链接地址 */ /** 类别:1为标题,2为文字段落,3为图片地址,4为视频地址,5为语音地址,6为链接地址 */
type: number, type: 1 | 2 | 3 | 4 | 5 | 6,
/** 内容 */ /** 内容 */
content: string, content: string,
/** 排序,越小越靠前 */ /** 排序,越小越靠前 */
@ -111,7 +111,7 @@ declare module Item {
/** 内容ID */ /** 内容ID */
id: number, id: number,
/** 类型:1为标题,2为文字段落,3为图片地址,4为视频地址,5为语音地址,6为链接地址,7为附件资源,8为收费资源 */ /** 类型:1为标题,2为文字段落,3为图片地址,4为视频地址,5为语音地址,6为链接地址,7为附件资源,8为收费资源 */
type: number, type: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8,
/** POST ID */ /** POST ID */
post_id: number, post_id: number,
/** 内容 */ /** 内容 */
@ -190,7 +190,7 @@ declare module Item {
interface MessageProps { interface MessageProps {
id: number, id: number,
/** 类型:1为动态,2为评论,3为回复,4为私信,99为系统通知 */ /** 类型:1为动态,2为评论,3为回复,4为私信,99为系统通知 */
type: number, type: 1 | 2 | 3 | 4 | 99,
/** 摘要说明 */ /** 摘要说明 */
breif: string, breif: string,
/** 详细内容 */ /** 详细内容 */

Loading…
Cancel
Save