In TypeScript, What is the type of Image?
Solution 1:
If your image property contains ...
Image used as <img>
element
image?: HTMLImageElement
URL to image.
image?: String
Image as file from <input>
element
image?: File
If your image property contains ...
Image used as <img>
element
image?: HTMLImageElement
URL to image.
image?: String
Image as file from <input>
element
image?: File