添加了类型文件

This commit is contained in:
2020-10-09 10:49:24 +08:00
parent 975821021d
commit 9237c995b5
3 changed files with 31 additions and 7 deletions

20
src/types/index.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
/**
* 只添加了一些必要的参数,并没有写完整,因为剩下的大部分用不到
*/
// 图片选择
export interface ImgInfo {
file: string;
}
// 表单提交的验证
export interface FromSend {
preventDefault: Function;
}
// 视频文件
export interface VideoInfo {
type: string;
name: string;
}