beelink/src/types/index.d.ts
2020-10-09 16:04:20 +08:00

28 lines
451 B
TypeScript

/**
* 只添加了一些必要的参数,并没有写完整,因为剩下的大部分用不到
*/
// 图片选择
export interface ImgInfo {
file: string;
}
// 表单提交的验证
export interface FromSend {
preventDefault: Function;
}
// 视频文件
export interface VideoInfo {
type: string;
name: string;
uid: string;
}
// 返回数据
export interface ResData{
code?: number;
msg?: string;
data?: any;
}