我正在声明一个界面,它也将包含图像.我需要给它什么类型的.
export interface AdInterface {
email: string;
mobile: number;
image?: ??
}
我正在声明一个界面,它也将包含图像.我需要给它什么类型的.
export interface AdInterface {
email: string;
mobile: number;
image?: ??
}
如果图像属性包含...
Image used as <img>
element
image?: HTMLImageElement
URL to image.
image?: String
Image as file from <input>
element
image?: File