- From: Marcos Caceres <notifications@github.com>
- Date: Fri, 11 Sep 2015 11:50:04 -0700
- To: WICG/img-conversion <img-conversion@noreply.github.com>
Received on Friday, 11 September 2015 18:50:33 UTC
I'm wondering, why not: ``` partial interface ImageData { static CanDoOperation supports (EncoderOpts options); }; enum CanDoOperation{ "", "maybe", "probably" }; enum Operation { "encode", "decode" }; ``` Then: ``` var ops = {operation: "decode", type: "image/jpeg"}; if (ImageData.supports(ops)){ //do thing.. } ``` --- Reply to this email directly or view it on GitHub: https://github.com/WICG/img-conversion/issues/12
Received on Friday, 11 September 2015 18:50:33 UTC