添加了类型文件
This commit is contained in:
20
src/types/index.d.ts
vendored
Normal file
20
src/types/index.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 只添加了一些必要的参数,并没有写完整,因为剩下的大部分用不到
|
||||
*/
|
||||
|
||||
|
||||
// 图片选择
|
||||
export interface ImgInfo {
|
||||
file: string;
|
||||
}
|
||||
|
||||
// 表单提交的验证
|
||||
export interface FromSend {
|
||||
preventDefault: Function;
|
||||
}
|
||||
|
||||
// 视频文件
|
||||
export interface VideoInfo {
|
||||
type: string;
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user