Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Dedicated Web Workers.
The type read-only property of the ImageDecoder interface reflects the MIME type configured during construction.
A string containing the configured MIME type.
The following example prints the value of type to the console.
console.log(imageDecoder.type);