ImageDecoder: type property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{securecontext_header}}{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}
The **type** read-only property of the {{domxref("ImageDecoder")}} interface reflects the MIME type configured during construction.
Value
A string containing the configured MIME type.
Examples
The following example prints the value of type to the console.
js
console.log(imageDecoder.type);Specifications
{{Specifications}}
Browser compatibility
{{Compat}}