Skip to content

Instantly share code, notes, and snippets.

@skial
Created May 19, 2015 09:54
Show Gist options
  • Save skial/123a543d44928b52197c to your computer and use it in GitHub Desktop.
Save skial/123a543d44928b52197c to your computer and use it in GitHub Desktop.
package js.html;
@:native("Blob")
extern class Blob
{
var size(default,null) : Int;
var type(default,null) : String;
/** @throws DOMError */
@:overload( function() : Void {} )
function new( blobParts : Array<haxe.extern.EitherType<ArrayBuffer,haxe.extern.EitherType<ArrayBufferView,haxe.extern.EitherType<Blob,String>>>>, ?options : BlobPropertyBag ) : Void;
/** @throws DOMError */
function slice( ?start : Int, ?end : Int, ?contentType : String = "" ) : Blob;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment