Parcourir la source

Updates to js.html.

Refs #4005.
Bruno Garcia il y a 10 ans
Parent
commit
0361d54888
70 fichiers modifiés avec 127 ajouts et 75 suppressions
  1. 1 1
      std/js/html/Blob.hx
  2. 1 0
      std/js/html/CSSRuleList.hx
  3. 1 0
      std/js/html/CSSStyleDeclaration.hx
  4. 1 0
      std/js/html/CSSValueList.hx
  5. 2 1
      std/js/html/CanvasRenderingContext2D.hx
  6. 1 0
      std/js/html/DOMRectList.hx
  7. 1 1
      std/js/html/DOMRequest.hx
  8. 1 0
      std/js/html/DOMStringList.hx
  9. 1 1
      std/js/html/DOMStringMap.hx
  10. 1 0
      std/js/html/DOMTokenList.hx
  11. 6 6
      std/js/html/Directory.hx
  12. 1 1
      std/js/html/Document.hx
  13. 1 1
      std/js/html/Element.hx
  14. 1 1
      std/js/html/File.hx
  15. 1 0
      std/js/html/FileList.hx
  16. 2 0
      std/js/html/Float32Array.hx
  17. 2 0
      std/js/html/Float64Array.hx
  18. 3 3
      std/js/html/FontFace.hx
  19. 2 2
      std/js/html/FontFaceSet.hx
  20. 1 1
      std/js/html/HTMLAllCollection.hx
  21. 1 0
      std/js/html/HTMLCollection.hx
  22. 1 1
      std/js/html/HTMLOptionsCollection.hx
  23. 2 0
      std/js/html/Int16Array.hx
  24. 2 0
      std/js/html/Int32Array.hx
  25. 2 0
      std/js/html/Int8Array.hx
  26. 1 1
      std/js/html/MediaElement.hx
  27. 8 8
      std/js/html/MediaKeySession.hx
  28. 1 1
      std/js/html/MediaKeySystemAccess.hx
  29. 2 2
      std/js/html/MediaKeys.hx
  30. 1 0
      std/js/html/MediaList.hx
  31. 1 1
      std/js/html/MessageEvent.hx
  32. 1 0
      std/js/html/MessagePortList.hx
  33. 1 0
      std/js/html/MimeTypeArray.hx
  34. 1 0
      std/js/html/NamedNodeMap.hx
  35. 2 2
      std/js/html/Navigator.hx
  36. 1 0
      std/js/html/NodeList.hx
  37. 1 1
      std/js/html/Notification.hx
  38. 1 0
      std/js/html/PaintRequestList.hx
  39. 1 0
      std/js/html/Plugin.hx
  40. 1 0
      std/js/html/PluginArray.hx
  41. 2 1
      std/js/html/SelectElement.hx
  42. 2 2
      std/js/html/ServiceWorkerClients.hx
  43. 1 1
      std/js/html/ServiceWorkerGlobalScope.hx
  44. 2 0
      std/js/html/SpeechGrammarList.hx
  45. 1 0
      std/js/html/SpeechRecognitionResult.hx
  46. 1 0
      std/js/html/SpeechRecognitionResultList.hx
  47. 1 0
      std/js/html/StyleSheetList.hx
  48. 12 12
      std/js/html/SubtleCrypto.hx
  49. 1 1
      std/js/html/Text.hx
  50. 1 1
      std/js/html/TextDecoder.hx
  51. 1 0
      std/js/html/TouchList.hx
  52. 1 1
      std/js/html/TrackEvent.hx
  53. 2 0
      std/js/html/Uint16Array.hx
  54. 2 0
      std/js/html/Uint32Array.hx
  55. 2 0
      std/js/html/Uint8Array.hx
  56. 2 0
      std/js/html/Uint8ClampedArray.hx
  57. 1 1
      std/js/html/VTTCue.hx
  58. 1 1
      std/js/html/Window.hx
  59. 1 1
      std/js/html/WorkerGlobalScope.hx
  60. 1 1
      std/js/html/audio/AudioContext.hx
  61. 1 1
      std/js/html/audio/OfflineAudioContext.hx
  62. 1 1
      std/js/html/idb/Cursor.hx
  63. 1 1
      std/js/html/idb/Request.hx
  64. 12 12
      std/js/html/rtc/PeerConnection.hx
  65. 1 1
      std/js/html/rtc/RtpSender.hx
  66. 2 0
      std/js/html/svg/LengthList.hx
  67. 2 0
      std/js/html/svg/NumberList.hx
  68. 2 0
      std/js/html/svg/PathSegList.hx
  69. 2 0
      std/js/html/svg/PointList.hx
  70. 2 0
      std/js/html/svg/TransformList.hx

+ 1 - 1
std/js/html/Blob.hx

@@ -29,7 +29,7 @@ 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;

+ 1 - 0
std/js/html/CSSRuleList.hx

@@ -29,4 +29,5 @@ extern class CSSRuleList implements ArrayAccess<Dynamic/*MISSING CSSRule*/>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : Dynamic/*MISSING CSSRule*/;
 }

+ 1 - 0
std/js/html/CSSStyleDeclaration.hx

@@ -702,6 +702,7 @@ extern class CSSStyleDeclaration implements ArrayAccess<String>
 	/** Shorthand for the "z-index" CSS property. */
 	var zIndex :String;
 	
+	function item( index : Int ) : String;
 	/** @throws DOMError */
 	function getPropertyValue( property : String ) : String;
 	/** @throws DOMError */

+ 1 - 0
std/js/html/CSSValueList.hx

@@ -29,4 +29,5 @@ extern class CSSValueList extends CSSValue implements ArrayAccess<CSSValue>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : CSSValue;
 }

+ 2 - 1
std/js/html/CanvasRenderingContext2D.hx

@@ -37,6 +37,7 @@ extern class CanvasRenderingContext2D
 	var shadowBlur : Float;
 	var shadowColor : String;
 	var filter : String;
+	var imageSmoothingEnabled : Bool;
 	var lineWidth : Float;
 	var lineCap : String;
 	var lineJoin : String;
@@ -45,7 +46,7 @@ extern class CanvasRenderingContext2D
 	var font : String;
 	var textAlign : String;
 	var textBaseline : String;
-
+	
 	function save() : Void;
 	function restore() : Void;
 	/** @throws DOMError */

+ 1 - 0
std/js/html/DOMRectList.hx

@@ -29,4 +29,5 @@ extern class DOMRectList implements ArrayAccess<DOMRect>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : DOMRect;
 }

+ 1 - 1
std/js/html/DOMRequest.hx

@@ -33,5 +33,5 @@ extern class DOMRequest extends EventTarget
 	var onsuccess : haxe.Constraints.Function;
 	var onerror : haxe.Constraints.Function;
 	
-	function then( ?fulfillCallback : haxe.Constraints.Function, ?rejectCallback : haxe.Constraints.Function ) : Promise/*<Any>*/;
+	function then( ?fulfillCallback : haxe.Constraints.Function, ?rejectCallback : haxe.Constraints.Function ) : Promise<Dynamic>;
 }

+ 1 - 0
std/js/html/DOMStringList.hx

@@ -29,5 +29,6 @@ extern class DOMStringList implements ArrayAccess<String>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : String;
 	function contains( string : String ) : Bool;
 }

+ 1 - 1
std/js/html/DOMStringMap.hx

@@ -25,6 +25,6 @@
 package js.html;
 
 @:native("DOMStringMap")
-extern class DOMStringMap
+extern class DOMStringMap implements Dynamic<String>
 {
 }

+ 1 - 0
std/js/html/DOMTokenList.hx

@@ -29,6 +29,7 @@ extern class DOMTokenList implements ArrayAccess<String>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : String;
 	/** @throws DOMError */
 	function contains( token : String ) : Bool;
 	/** @throws DOMError */

+ 6 - 6
std/js/html/Directory.hx

@@ -28,10 +28,10 @@ package js.html;
 extern class Directory
 {
 	var name(default,null) : String;
-
-	function createFile( path : String, ?options : CreateFileOptions ) : Promise/*<File (Wrapper)>*/;
-	function createDirectory( path : String ) : Promise/*<Directory (Wrapper)>*/;
-	function get( path : String ) : Promise/*<FileOrDirectory>*/;
-	function remove( path : haxe.extern.EitherType<String,haxe.extern.EitherType<File,Directory>> ) : Promise/*<Boolean>*/;
-	function removeDeep( path : haxe.extern.EitherType<String,haxe.extern.EitherType<File,Directory>> ) : Promise/*<Boolean>*/;
+	
+	function createFile( path : String, ?options : CreateFileOptions ) : Promise<File>;
+	function createDirectory( path : String ) : Promise<Directory>;
+	function get( path : String ) : Promise<haxe.extern.EitherType<File,Directory>>;
+	function remove( path : haxe.extern.EitherType<String,haxe.extern.EitherType<File,Directory>> ) : Promise<Bool>;
+	function removeDeep( path : haxe.extern.EitherType<String,haxe.extern.EitherType<File,Directory>> ) : Promise<Bool>;
 }

+ 1 - 1
std/js/html/Document.hx

@@ -136,7 +136,7 @@ extern class Document extends Node
 	var firstElementChild(default,null) : Element;
 	var lastElementChild(default,null) : Element;
 	var childElementCount(default,null) : Int;
-
+	
 	/** @throws DOMError */
 	function new() : Void;
 	function getElementsByTagName( localName : String ) : HTMLCollection;

+ 1 - 1
std/js/html/Element.hx

@@ -123,7 +123,7 @@ extern class Element extends Node
 	var firstElementChild(default,null) : Element;
 	var lastElementChild(default,null) : Element;
 	var childElementCount(default,null) : Int;
-
+	
 	function getAttribute( name : String ) : String;
 	function getAttributeNS( namespace_ : String, localName : String ) : String;
 	/** @throws DOMError */

+ 1 - 1
std/js/html/File.hx

@@ -30,7 +30,7 @@ extern class File extends Blob
 	var name(default,null) : String;
 	var lastModified(default,null) : Int;
 	var lastModifiedDate(default,null) : Date;
-
+	
 	/** @throws DOMError */
 	@:overload( function( fileBits : Array<haxe.extern.EitherType<ArrayBuffer,haxe.extern.EitherType<ArrayBufferView,haxe.extern.EitherType<Blob,String>>>>, fileName : String, ?options : FilePropertyBag ) : Void {} )
 	@:overload( function( fileBits : Blob, ?options : ChromeFilePropertyBag ) : Void {} )

+ 1 - 0
std/js/html/FileList.hx

@@ -29,4 +29,5 @@ extern class FileList implements ArrayAccess<File>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : File;
 }

+ 2 - 0
std/js/html/Float32Array.hx

@@ -36,6 +36,8 @@ extern class Float32Array extends ArrayBufferView implements ArrayAccess<Float>
 	@:overload( function( array : Float32Array ) : Void {} )
 	@:overload( function( array : Array<Float> ) : Void {} )
 	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
+	function get( index : Int ) : Float;
+	@:overload( function( index : Int, value : Float ) : Void {} )
 	@:overload( function( array : Float32Array, ?offset : Int ) : Void {} )
 	function set( array : Array<Float>, ?offset : Int ) : Void;
 	function subarray( start : Int, end : Int ) : Float32Array;

+ 2 - 0
std/js/html/Float64Array.hx

@@ -36,6 +36,8 @@ extern class Float64Array extends ArrayBufferView implements ArrayAccess<Float>
 	@:overload( function( array : Float64Array ) : Void {} )
 	@:overload( function( array : Array<Float> ) : Void {} )
 	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
+	function get( index : Int ) : Float;
+	@:overload( function( index : Int, value : Float ) : Void {} )
 	@:overload( function( array : Float64Array, ?offset : Int ) : Void {} )
 	function set( array : Array<Float>, ?offset : Int ) : Void;
 	function subarray( start : Int, end : Int ) : Float64Array;

+ 3 - 3
std/js/html/FontFace.hx

@@ -35,10 +35,10 @@ extern class FontFace
 	var variant : String;
 	var featureSettings : String;
 	var status(default,null) : FontFaceLoadStatus;
-	var loaded(default,null) : Promise/*<FontFace (Wrapper)>*/;
-
+	var loaded(default,null) : Promise<FontFace>;
+	
 	/** @throws DOMError */
 	function new( family : String, source : haxe.extern.EitherType<String,haxe.extern.EitherType<ArrayBuffer,ArrayBufferView>>, ?descriptors : FontFaceDescriptors ) : Void;
 	/** @throws DOMError */
-	function load() : Promise/*<FontFace (Wrapper)>*/;
+	function load() : Promise<FontFace>;
 }

+ 2 - 2
std/js/html/FontFaceSet.hx

@@ -30,7 +30,7 @@ extern class FontFaceSet extends EventTarget
 	var onloading : haxe.Constraints.Function;
 	var onloadingdone : haxe.Constraints.Function;
 	var onloadingerror : haxe.Constraints.Function;
-	var ready(default,null) : Promise/*<Void>*/;
+	var ready(default,null) : Promise<Void>;
 	var status(default,null) : FontFaceSetLoadStatus;
 	var length(default,null) : Int;
 	
@@ -42,5 +42,5 @@ extern class FontFaceSet extends EventTarget
 	function delete_( font : FontFace ) : Bool;
 	function clear() : Void;
 	/** @throws DOMError */
-	function load( font : String, ?text : String = " " ) : Promise/*<FontFace (Wrapper)Sequence>*/;
+	function load( font : String, ?text : String = " " ) : Promise<Array<FontFace>>;
 }

+ 1 - 1
std/js/html/HTMLAllCollection.hx

@@ -28,7 +28,7 @@ package js.html;
 extern class HTMLAllCollection
 {
 	var length(default,null) : Int;
-
+	
 	@:overload( function( index : Int ) : Node {} )
 	function item( name : String ) : haxe.extern.EitherType<Node,HTMLCollection>;
 	function namedItem( name : String ) : haxe.extern.EitherType<Node,HTMLCollection>;

+ 1 - 0
std/js/html/HTMLCollection.hx

@@ -29,5 +29,6 @@ extern class HTMLCollection implements ArrayAccess<Element>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : Element;
 	function namedItem( name : String ) : Element;
 }

+ 1 - 1
std/js/html/HTMLOptionsCollection.hx

@@ -28,7 +28,7 @@ package js.html;
 extern class HTMLOptionsCollection extends HTMLCollection
 {
 	var selectedIndex : Int;
-
+	
 	/** @throws DOMError */
 	function add( element : haxe.extern.EitherType<OptionElement,OptGroupElement>, ?before : haxe.extern.EitherType<HTMLElement,Int> ) : Void;
 	/** @throws DOMError */

+ 2 - 0
std/js/html/Int16Array.hx

@@ -36,6 +36,8 @@ extern class Int16Array extends ArrayBufferView implements ArrayAccess<Int>
 	@:overload( function( array : Int16Array ) : Void {} )
 	@:overload( function( array : Array<Int> ) : Void {} )
 	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
+	function get( index : Int ) : Int;
+	@:overload( function( index : Int, value : Int ) : Void {} )
 	@:overload( function( array : Int16Array, ?offset : Int ) : Void {} )
 	function set( array : Array<Int>, ?offset : Int ) : Void;
 	function subarray( start : Int, end : Int ) : Int16Array;

+ 2 - 0
std/js/html/Int32Array.hx

@@ -36,6 +36,8 @@ extern class Int32Array extends ArrayBufferView implements ArrayAccess<Int>
 	@:overload( function( array : Int32Array ) : Void {} )
 	@:overload( function( array : Array<Int> ) : Void {} )
 	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
+	function get( index : Int ) : Int;
+	@:overload( function( index : Int, value : Int ) : Void {} )
 	@:overload( function( array : Int32Array, ?offset : Int ) : Void {} )
 	function set( array : Array<Int>, ?offset : Int ) : Void;
 	function subarray( start : Int, end : Int ) : Int32Array;

+ 2 - 0
std/js/html/Int8Array.hx

@@ -36,6 +36,8 @@ extern class Int8Array extends ArrayBufferView implements ArrayAccess<Int>
 	@:overload( function( array : Int8Array ) : Void {} )
 	@:overload( function( array : Array<Int> ) : Void {} )
 	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
+	function get( index : Int ) : Int;
+	@:overload( function( index : Int, value : Int ) : Void {} )
 	@:overload( function( array : Int8Array, ?offset : Int ) : Void {} )
 	function set( array : Array<Int>, ?offset : Int ) : Void;
 	function subarray( start : Int, end : Int ) : Int8Array;

+ 1 - 1
std/js/html/MediaElement.hx

@@ -76,5 +76,5 @@ extern class MediaElement extends HTMLElement
 	/** @throws DOMError */
 	function pause() : Void;
 	function addTextTrack( kind : TextTrackKind, ?label : String = "", ?language : String = "" ) : TextTrack;
-	function setMediaKeys( mediaKeys : MediaKeys ) : Promise/*<Void>*/;
+	function setMediaKeys( mediaKeys : MediaKeys ) : Promise<Void>;
 }

+ 8 - 8
std/js/html/MediaKeySession.hx

@@ -31,12 +31,12 @@ extern class MediaKeySession extends EventTarget
 	var keySystem(default,null) : String;
 	var sessionId(default,null) : String;
 	var expiration(default,null) : Float;
-	var closed(default,null) : Promise/*<Void>*/;
-
-	function generateRequest( initDataType : String, initData : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise/*<Void>*/;
-	function load( sessionId : String ) : Promise/*<Boolean>*/;
-	function update( response : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise/*<Void>*/;
-	function close() : Promise/*<Void>*/;
-	function remove() : Promise/*<Void>*/;
-	function getUsableKeyIds() : Promise/*<ArrayBufferSequence>*/;
+	var closed(default,null) : Promise<Void>;
+	
+	function generateRequest( initDataType : String, initData : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise<Void>;
+	function load( sessionId : String ) : Promise<Bool>;
+	function update( response : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise<Void>;
+	function close() : Promise<Void>;
+	function remove() : Promise<Void>;
+	function getUsableKeyIds() : Promise<Array<ArrayBuffer>>;
 }

+ 1 - 1
std/js/html/MediaKeySystemAccess.hx

@@ -29,5 +29,5 @@ extern class MediaKeySystemAccess
 {
 	var keySystem(default,null) : String;
 	
-	function createMediaKeys() : Promise/*<MediaKeys (Wrapper)>*/;
+	function createMediaKeys() : Promise<MediaKeys>;
 }

+ 2 - 2
std/js/html/MediaKeys.hx

@@ -28,8 +28,8 @@ package js.html;
 extern class MediaKeys
 {
 	var keySystem(default,null) : String;
-
+	
 	/** @throws DOMError */
 	function createSession( ?sessionType : SessionType = "temporary" ) : MediaKeySession;
-	function setServerCertificate( serverCertificate : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise/*<Void>*/;
+	function setServerCertificate( serverCertificate : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise<Void>;
 }

+ 1 - 0
std/js/html/MediaList.hx

@@ -30,6 +30,7 @@ extern class MediaList implements ArrayAccess<String>
 	var mediaText : String;
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : String;
 	/** @throws DOMError */
 	function deleteMedium( oldMedium : String ) : Void;
 	/** @throws DOMError */

+ 1 - 1
std/js/html/MessageEvent.hx

@@ -32,7 +32,7 @@ extern class MessageEvent extends Event
 	var lastEventId(default,null) : String;
 	var source(default,null) : haxe.extern.EitherType<Window,MessagePort>;
 	var ports(default,null) : MessagePortList;
-
+	
 	/** @throws DOMError */
 	function new( type : String, ?eventInitDict : MessageEventInit ) : Void;
 }

+ 1 - 0
std/js/html/MessagePortList.hx

@@ -29,4 +29,5 @@ extern class MessagePortList implements ArrayAccess<MessagePort>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : MessagePort;
 }

+ 1 - 0
std/js/html/MimeTypeArray.hx

@@ -29,5 +29,6 @@ extern class MimeTypeArray implements ArrayAccess<MimeType>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : MimeType;
 	function namedItem( name : String ) : MimeType;
 }

+ 1 - 0
std/js/html/NamedNodeMap.hx

@@ -34,6 +34,7 @@ extern class NamedNodeMap implements ArrayAccess<Attr>
 	function setNamedItem( arg : Attr ) : Attr;
 	/** @throws DOMError */
 	function removeNamedItem( name : String ) : Attr;
+	function item( index : Int ) : Attr;
 	function getNamedItemNS( namespaceURI : String, localName : String ) : Attr;
 	/** @throws DOMError */
 	function setNamedItemNS( arg : Attr ) : Attr;

+ 2 - 2
std/js/html/Navigator.hx

@@ -48,7 +48,7 @@ extern class Navigator
 	var language(default,null) : String;
 	var languages(default,null) : Array<String>;
 	var onLine(default,null) : Bool;
-
+	
 	@:overload( function( duration : Int ) : Bool {} )
 	function vibrate( pattern : Array<Int> ) : Bool;
 	/** @throws DOMError */
@@ -57,7 +57,7 @@ extern class Navigator
 	function getGamepads() : Array<Gamepad>;
 	/** @throws DOMError */
 	function sendBeacon( url : String, ?data : haxe.extern.EitherType<ArrayBufferView,haxe.extern.EitherType<Blob,haxe.extern.EitherType<String,FormData>>> ) : Bool;
-	function requestMediaKeySystemAccess( keySystem : String, ?supportedConfigurations : Array<MediaKeySystemOptions> ) : Promise/*<MediaKeySystemAccess (Wrapper)>*/;
+	function requestMediaKeySystemAccess( keySystem : String, ?supportedConfigurations : Array<MediaKeySystemOptions> ) : Promise<MediaKeySystemAccess>;
 	/** @throws DOMError */
 	function registerProtocolHandler( scheme : String, url : String, title : String ) : Void;
 	/** @throws DOMError */

+ 1 - 0
std/js/html/NodeList.hx

@@ -29,4 +29,5 @@ extern class NodeList implements ArrayAccess<Node>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : Node;
 }

+ 1 - 1
std/js/html/Notification.hx

@@ -32,7 +32,7 @@ extern class Notification extends EventTarget
 	/** @throws DOMError */
 	static function requestPermission( ?permissionCallback : NotificationPermission -> Void ) : Void;
 	/** @throws DOMError */
-	static function get( ?filter : GetNotificationOptions ) : Promise/*<Notification (Wrapper)Sequence>*/;
+	static function get( ?filter : GetNotificationOptions ) : Promise<Array<Notification>>;
 	var onclick : haxe.Constraints.Function;
 	var onshow : haxe.Constraints.Function;
 	var onerror : haxe.Constraints.Function;

+ 1 - 0
std/js/html/PaintRequestList.hx

@@ -29,4 +29,5 @@ extern class PaintRequestList implements ArrayAccess<PaintRequest>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : PaintRequest;
 }

+ 1 - 0
std/js/html/Plugin.hx

@@ -33,5 +33,6 @@ extern class Plugin implements ArrayAccess<MimeType>
 	var name(default,null) : String;
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : MimeType;
 	function namedItem( name : String ) : MimeType;
 }

+ 1 - 0
std/js/html/PluginArray.hx

@@ -29,6 +29,7 @@ extern class PluginArray implements ArrayAccess<Plugin>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : Plugin;
 	function namedItem( name : String ) : Plugin;
 	function refresh( ?reloadDocuments : Bool = false ) : Void;
 }

+ 2 - 1
std/js/html/SelectElement.hx

@@ -43,7 +43,8 @@ extern class SelectElement extends HTMLElement implements ArrayAccess<Element>
 	var willValidate(default,null) : Bool;
 	var validity(default,null) : ValidityState;
 	var validationMessage(default,null) : String;
-
+	
+	function item( index : Int ) : Element;
 	function namedItem( name : String ) : OptionElement;
 	/** @throws DOMError */
 	function add( element : haxe.extern.EitherType<OptionElement,OptGroupElement>, ?before : haxe.extern.EitherType<HTMLElement,Int> ) : Void;

+ 2 - 2
std/js/html/ServiceWorkerClients.hx

@@ -28,7 +28,7 @@ package js.html;
 extern class ServiceWorkerClients
 {
 	/** @throws DOMError */
-	function getServiced() : Promise/*<ServiceWorkerClient (Wrapper)SequenceOrNull>*/;
+	function getServiced() : Promise<Array<ServiceWorkerClient>>;
 	/** @throws DOMError */
-	function reloadAll() : Promise/*<Any>*/;
+	function reloadAll() : Promise<Dynamic>;
 }

+ 1 - 1
std/js/html/ServiceWorkerGlobalScope.hx

@@ -38,5 +38,5 @@ extern class ServiceWorkerGlobalScope extends WorkerGlobalScope
 	
 	function update() : Void;
 	/** @throws DOMError */
-	function unregister() : Promise/*<Boolean>*/;
+	function unregister() : Promise<Bool>;
 }

+ 2 - 0
std/js/html/SpeechGrammarList.hx

@@ -32,6 +32,8 @@ extern class SpeechGrammarList implements ArrayAccess<SpeechGrammar>
 	/** @throws DOMError */
 	function new() : Void;
 	/** @throws DOMError */
+	function item( index : Int ) : SpeechGrammar;
+	/** @throws DOMError */
 	function addFromURI( src : String, ?weight : Float ) : Void;
 	/** @throws DOMError */
 	function addFromString( string : String, ?weight : Float ) : Void;

+ 1 - 0
std/js/html/SpeechRecognitionResult.hx

@@ -31,4 +31,5 @@ extern class SpeechRecognitionResult implements ArrayAccess<SpeechRecognitionAlt
 	@:native("final")
 	var final_(default,null) : Bool;
 	
+	function item( index : Int ) : SpeechRecognitionAlternative;
 }

+ 1 - 0
std/js/html/SpeechRecognitionResultList.hx

@@ -29,4 +29,5 @@ extern class SpeechRecognitionResultList implements ArrayAccess<SpeechRecognitio
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : SpeechRecognitionResult;
 }

+ 1 - 0
std/js/html/StyleSheetList.hx

@@ -29,4 +29,5 @@ extern class StyleSheetList implements ArrayAccess<StyleSheet>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : StyleSheet;
 }

+ 12 - 12
std/js/html/SubtleCrypto.hx

@@ -28,27 +28,27 @@ package js.html;
 extern class SubtleCrypto
 {
 	/** @throws DOMError */
-	function encrypt( algorithm : haxe.extern.EitherType<Dynamic,String>, key : CryptoKey, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise/*<Any>*/;
+	function encrypt( algorithm : haxe.extern.EitherType<Dynamic,String>, key : CryptoKey, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function decrypt( algorithm : haxe.extern.EitherType<Dynamic,String>, key : CryptoKey, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise/*<Any>*/;
+	function decrypt( algorithm : haxe.extern.EitherType<Dynamic,String>, key : CryptoKey, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function sign( algorithm : haxe.extern.EitherType<Dynamic,String>, key : CryptoKey, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise/*<Any>*/;
+	function sign( algorithm : haxe.extern.EitherType<Dynamic,String>, key : CryptoKey, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function verify( algorithm : haxe.extern.EitherType<Dynamic,String>, key : CryptoKey, signature : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer>, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise/*<Any>*/;
+	function verify( algorithm : haxe.extern.EitherType<Dynamic,String>, key : CryptoKey, signature : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer>, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function digest( algorithm : haxe.extern.EitherType<Dynamic,String>, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise/*<Any>*/;
+	function digest( algorithm : haxe.extern.EitherType<Dynamic,String>, data : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer> ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function generateKey( algorithm : haxe.extern.EitherType<Dynamic,String>, extractable : Bool, keyUsages : Array<String> ) : Promise/*<Any>*/;
+	function generateKey( algorithm : haxe.extern.EitherType<Dynamic,String>, extractable : Bool, keyUsages : Array<String> ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function deriveKey( algorithm : haxe.extern.EitherType<Dynamic,String>, baseKey : CryptoKey, derivedKeyType : haxe.extern.EitherType<Dynamic,String>, extractable : Bool, keyUsages : Array<String> ) : Promise/*<Any>*/;
+	function deriveKey( algorithm : haxe.extern.EitherType<Dynamic,String>, baseKey : CryptoKey, derivedKeyType : haxe.extern.EitherType<Dynamic,String>, extractable : Bool, keyUsages : Array<String> ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function deriveBits( algorithm : haxe.extern.EitherType<Dynamic,String>, baseKey : CryptoKey, length : Int ) : Promise/*<Any>*/;
+	function deriveBits( algorithm : haxe.extern.EitherType<Dynamic,String>, baseKey : CryptoKey, length : Int ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function importKey( format : String, keyData : Dynamic, algorithm : haxe.extern.EitherType<Dynamic,String>, extractable : Bool, keyUsages : Array<String> ) : Promise/*<Any>*/;
+	function importKey( format : String, keyData : Dynamic, algorithm : haxe.extern.EitherType<Dynamic,String>, extractable : Bool, keyUsages : Array<String> ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function exportKey( format : String, key : CryptoKey ) : Promise/*<Any>*/;
+	function exportKey( format : String, key : CryptoKey ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function wrapKey( format : String, key : CryptoKey, wrappingKey : CryptoKey, wrapAlgorithm : haxe.extern.EitherType<Dynamic,String> ) : Promise/*<Any>*/;
+	function wrapKey( format : String, key : CryptoKey, wrappingKey : CryptoKey, wrapAlgorithm : haxe.extern.EitherType<Dynamic,String> ) : Promise<Dynamic>;
 	/** @throws DOMError */
-	function unwrapKey( format : String, wrappedKey : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer>, unwrappingKey : CryptoKey, unwrapAlgorithm : haxe.extern.EitherType<Dynamic,String>, unwrappedKeyAlgorithm : haxe.extern.EitherType<Dynamic,String>, extractable : Bool, keyUsages : Array<String> ) : Promise/*<Any>*/;
+	function unwrapKey( format : String, wrappedKey : haxe.extern.EitherType<ArrayBufferView,ArrayBuffer>, unwrappingKey : CryptoKey, unwrapAlgorithm : haxe.extern.EitherType<Dynamic,String>, unwrappedKeyAlgorithm : haxe.extern.EitherType<Dynamic,String>, extractable : Bool, keyUsages : Array<String> ) : Promise<Dynamic>;
 }

+ 1 - 1
std/js/html/Text.hx

@@ -28,7 +28,7 @@ package js.html;
 extern class Text extends CharacterData
 {
 	var wholeText(default,null) : String;
-
+	
 	/** @throws DOMError */
 	function new( ?data : String = "" ) : Void;
 	/** @throws DOMError */

+ 1 - 1
std/js/html/TextDecoder.hx

@@ -29,7 +29,7 @@ extern class TextDecoder
 {
 	var encoding(default,null) : String;
 	var fatal(default,null) : Bool;
-
+	
 	/** @throws DOMError */
 	function new( ?label : String = "utf-8", ?options : TextDecoderOptions ) : Void;
 	/** @throws DOMError */

+ 1 - 0
std/js/html/TouchList.hx

@@ -29,5 +29,6 @@ extern class TouchList implements ArrayAccess<Touch>
 {
 	var length(default,null) : Int;
 	
+	function item( index : Int ) : Touch;
 	function identifiedTouch( identifier : Int ) : Touch;
 }

+ 1 - 1
std/js/html/TrackEvent.hx

@@ -28,7 +28,7 @@ package js.html;
 extern class TrackEvent extends Event
 {
 	var track(default,null) : haxe.extern.EitherType<VideoTrack,haxe.extern.EitherType<AudioTrack,TextTrack>>;
-
+	
 	/** @throws DOMError */
 	function new( type : String, ?eventInitDict : TrackEventInit ) : Void;
 }

+ 2 - 0
std/js/html/Uint16Array.hx

@@ -36,6 +36,8 @@ extern class Uint16Array extends ArrayBufferView implements ArrayAccess<Int>
 	@:overload( function( array : Uint16Array ) : Void {} )
 	@:overload( function( array : Array<Int> ) : Void {} )
 	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
+	function get( index : Int ) : Int;
+	@:overload( function( index : Int, value : Int ) : Void {} )
 	@:overload( function( array : Uint16Array, ?offset : Int ) : Void {} )
 	function set( array : Array<Int>, ?offset : Int ) : Void;
 	function subarray( start : Int, end : Int ) : Uint16Array;

+ 2 - 0
std/js/html/Uint32Array.hx

@@ -36,6 +36,8 @@ extern class Uint32Array extends ArrayBufferView implements ArrayAccess<Int>
 	@:overload( function( array : Uint32Array ) : Void {} )
 	@:overload( function( array : Array<Int> ) : Void {} )
 	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
+	function get( index : Int ) : Int;
+	@:overload( function( index : Int, value : Int ) : Void {} )
 	@:overload( function( array : Uint32Array, ?offset : Int ) : Void {} )
 	function set( array : Array<Int>, ?offset : Int ) : Void;
 	function subarray( start : Int, end : Int ) : Uint32Array;

+ 2 - 0
std/js/html/Uint8Array.hx

@@ -36,6 +36,8 @@ extern class Uint8Array extends ArrayBufferView implements ArrayAccess<Int>
 	@:overload( function( array : Uint8Array ) : Void {} )
 	@:overload( function( array : Array<Int> ) : Void {} )
 	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
+	function get( index : Int ) : Int;
+	@:overload( function( index : Int, value : Int ) : Void {} )
 	@:overload( function( array : Uint8Array, ?offset : Int ) : Void {} )
 	function set( array : Array<Int>, ?offset : Int ) : Void;
 	function subarray( start : Int, end : Int ) : Uint8Array;

+ 2 - 0
std/js/html/Uint8ClampedArray.hx

@@ -36,6 +36,8 @@ extern class Uint8ClampedArray extends ArrayBufferView implements ArrayAccess<In
 	@:overload( function( array : Uint8ClampedArray ) : Void {} )
 	@:overload( function( array : Array<Int> ) : Void {} )
 	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
+	function get( index : Int ) : Int;
+	@:overload( function( index : Int, value : Int ) : Void {} )
 	@:overload( function( array : Uint8ClampedArray, ?offset : Int ) : Void {} )
 	function set( array : Array<Int>, ?offset : Int ) : Void;
 	function subarray( start : Int, end : Int ) : Uint8ClampedArray;

+ 1 - 1
std/js/html/VTTCue.hx

@@ -44,7 +44,7 @@ extern class VTTCue extends EventTarget
 	var text : String;
 	var onenter : haxe.Constraints.Function;
 	var onexit : haxe.Constraints.Function;
-
+	
 	/** @throws DOMError */
 	function new( startTime : Float, endTime : Float, text : String ) : Void;
 	function getCueAsHTML() : DocumentFragment;

+ 1 - 1
std/js/html/Window.hx

@@ -160,7 +160,7 @@ extern class Window extends EventTarget
 	var onunload : haxe.Constraints.Function;
 	var localStorage(default,null) : Storage;
 	var sessionStorage(default,null) : Storage;
-
+	
 	/** @throws DOMError */
 	function close() : Void;
 	/** @throws DOMError */

+ 1 - 1
std/js/html/WorkerGlobalScope.hx

@@ -36,7 +36,7 @@ extern class WorkerGlobalScope extends EventTarget
 	var navigator(default,null) : WorkerNavigator;
 	var onclose : haxe.Constraints.Function;
 	var performance(default,null) : Performance;
-
+	
 	function close() : Void;
 	/** @throws DOMError */
 	function importScripts( ?urls : String ) : Void;

+ 1 - 1
std/js/html/audio/AudioContext.hx

@@ -37,7 +37,7 @@ extern class AudioContext extends js.html.EventTarget
 	function new( audioChannelType : js.html.AudioChannel ) : Void;
 	/** @throws DOMError */
 	function createBuffer( numberOfChannels : Int, length : Int, sampleRate : Float ) : AudioBuffer;
-	function decodeAudioData( audioData : js.html.ArrayBuffer, ?successCallback : AudioBuffer -> Void, ?errorCallback : Void -> Void ) : Promise/*<AudioBuffer (Wrapper)>*/;
+	function decodeAudioData( audioData : js.html.ArrayBuffer, ?successCallback : AudioBuffer -> Void, ?errorCallback : Void -> Void ) : Promise<AudioBuffer>;
 	function createBufferSource() : AudioBufferSourceNode;
 	/** @throws DOMError */
 	function createMediaStreamDestination() : MediaStreamAudioDestinationNode;

+ 1 - 1
std/js/html/audio/OfflineAudioContext.hx

@@ -32,5 +32,5 @@ extern class OfflineAudioContext extends AudioContext
 	/** @throws DOMError */
 	function new( numberOfChannels : Int, length : Int, sampleRate : Float ) : Void;
 	/** @throws DOMError */
-	function startRendering() : Promise/*<AudioBuffer (Wrapper)>*/;
+	function startRendering() : Promise<AudioBuffer>;
 }

+ 1 - 1
std/js/html/idb/Cursor.hx

@@ -31,7 +31,7 @@ extern class Cursor
 	var direction(default,null) : CursorDirection;
 	var key(default,null) : Dynamic;
 	var primaryKey(default,null) : Dynamic;
-
+	
 	/** @throws DOMError */
 	function update( value : Dynamic ) : Request;
 	/** @throws DOMError */

+ 1 - 1
std/js/html/idb/Request.hx

@@ -34,5 +34,5 @@ extern class Request extends js.html.EventTarget
 	var readyState(default,null) : RequestReadyState;
 	var onsuccess : haxe.Constraints.Function;
 	var onerror : haxe.Constraints.Function;
-
+	
 }

+ 12 - 12
std/js/html/rtc/PeerConnection.hx

@@ -50,17 +50,17 @@ extern class PeerConnection extends js.html.EventTarget
 	function new( ?configuration : Configuration, ?constraints : Dynamic ) : Void;
 	function setIdentityProvider( provider : String, ?protocol : String, ?username : String ) : Void;
 	function getIdentityAssertion() : Void;
-	@:overload( function( ?options : OfferOptions ) : Promise/*<mozRTCSessionDescription (Wrapper)>*/ {} )
-	function createOffer( successCallback : SessionDescription -> Void, failureCallback : js.html.DOMError -> Void, ?options : OfferOptions ) : Promise/*<Void>*/;
-	@:overload( function() : Promise/*<mozRTCSessionDescription (Wrapper)>*/ {} )
-	function createAnswer( successCallback : SessionDescription -> Void, failureCallback : js.html.DOMError -> Void ) : Promise/*<Void>*/;
-	@:overload( function( description : SessionDescription ) : Promise/*<Void>*/ {} )
-	function setLocalDescription( description : SessionDescription, successCallback : Void -> Void, failureCallback : js.html.DOMError -> Void ) : Promise/*<Void>*/;
-	@:overload( function( description : SessionDescription ) : Promise/*<Void>*/ {} )
-	function setRemoteDescription( description : SessionDescription, successCallback : Void -> Void, failureCallback : js.html.DOMError -> Void ) : Promise/*<Void>*/;
+	@:overload( function( ?options : OfferOptions ) : Promise<SessionDescription> {} )
+	function createOffer( successCallback : SessionDescription -> Void, failureCallback : js.html.DOMError -> Void, ?options : OfferOptions ) : Promise<Void>;
+	@:overload( function() : Promise<SessionDescription> {} )
+	function createAnswer( successCallback : SessionDescription -> Void, failureCallback : js.html.DOMError -> Void ) : Promise<Void>;
+	@:overload( function( description : SessionDescription ) : Promise<Void> {} )
+	function setLocalDescription( description : SessionDescription, successCallback : Void -> Void, failureCallback : js.html.DOMError -> Void ) : Promise<Void>;
+	@:overload( function( description : SessionDescription ) : Promise<Void> {} )
+	function setRemoteDescription( description : SessionDescription, successCallback : Void -> Void, failureCallback : js.html.DOMError -> Void ) : Promise<Void>;
 	function updateIce( ?configuration : Configuration ) : Void;
-	@:overload( function( candidate : IceCandidate ) : Promise/*<Void>*/ {} )
-	function addIceCandidate( candidate : IceCandidate, successCallback : Void -> Void, failureCallback : js.html.DOMError -> Void ) : Promise/*<Void>*/;
+	@:overload( function( candidate : IceCandidate ) : Promise<Void> {} )
+	function addIceCandidate( candidate : IceCandidate, successCallback : Void -> Void, failureCallback : js.html.DOMError -> Void ) : Promise<Void>;
 	function getConfiguration() : Configuration;
 	function getLocalStreams() : Array<js.html.MediaStream>;
 	function getRemoteStreams() : Array<js.html.MediaStream>;
@@ -72,7 +72,7 @@ extern class PeerConnection extends js.html.EventTarget
 	function getSenders() : Array<RtpSender>;
 	function getReceivers() : Array<RtpReceiver>;
 	function close() : Void;
-	@:overload( function( selector : js.html.MediaStreamTrack ) : Promise/*<RTCStatsReport (Wrapper)>*/ {} )
-	function getStats( selector : js.html.MediaStreamTrack, successCallback : StatsReport -> Void, failureCallback : js.html.DOMError -> Void ) : Promise/*<Void>*/;
+	@:overload( function( selector : js.html.MediaStreamTrack ) : Promise<StatsReport> {} )
+	function getStats( selector : js.html.MediaStreamTrack, successCallback : StatsReport -> Void, failureCallback : js.html.DOMError -> Void ) : Promise<Void>;
 	function createDataChannel( label : String, ?dataChannelDict : DataChannelInit ) : Dynamic/*MISSING RTCDataChannel*/;
 }

+ 1 - 1
std/js/html/rtc/RtpSender.hx

@@ -29,5 +29,5 @@ extern class RtpSender
 {
 	var track(default,null) : js.html.MediaStreamTrack;
 	
-	function replaceTrack( track : js.html.MediaStreamTrack ) : Promise/*<Void>*/;
+	function replaceTrack( track : js.html.MediaStreamTrack ) : Promise<Void>;
 }

+ 2 - 0
std/js/html/svg/LengthList.hx

@@ -35,6 +35,8 @@ extern class LengthList implements ArrayAccess<Length>
 	/** @throws DOMError */
 	function initialize( newItem : Length ) : Length;
 	/** @throws DOMError */
+	function getItem( index : Int ) : Length;
+	/** @throws DOMError */
 	function insertItemBefore( newItem : Length, index : Int ) : Length;
 	/** @throws DOMError */
 	function replaceItem( newItem : Length, index : Int ) : Length;

+ 2 - 0
std/js/html/svg/NumberList.hx

@@ -35,6 +35,8 @@ extern class NumberList implements ArrayAccess<Number>
 	/** @throws DOMError */
 	function initialize( newItem : Number ) : Number;
 	/** @throws DOMError */
+	function getItem( index : Int ) : Number;
+	/** @throws DOMError */
 	function insertItemBefore( newItem : Number, index : Int ) : Number;
 	/** @throws DOMError */
 	function replaceItem( newItem : Number, index : Int ) : Number;

+ 2 - 0
std/js/html/svg/PathSegList.hx

@@ -35,6 +35,8 @@ extern class PathSegList implements ArrayAccess<PathSeg>
 	/** @throws DOMError */
 	function initialize( newItem : PathSeg ) : PathSeg;
 	/** @throws DOMError */
+	function getItem( index : Int ) : PathSeg;
+	/** @throws DOMError */
 	function insertItemBefore( newItem : PathSeg, index : Int ) : PathSeg;
 	/** @throws DOMError */
 	function replaceItem( newItem : PathSeg, index : Int ) : PathSeg;

+ 2 - 0
std/js/html/svg/PointList.hx

@@ -35,6 +35,8 @@ extern class PointList implements ArrayAccess<Point>
 	/** @throws DOMError */
 	function initialize( newItem : Point ) : Point;
 	/** @throws DOMError */
+	function getItem( index : Int ) : Point;
+	/** @throws DOMError */
 	function insertItemBefore( newItem : Point, index : Int ) : Point;
 	/** @throws DOMError */
 	function replaceItem( newItem : Point, index : Int ) : Point;

+ 2 - 0
std/js/html/svg/TransformList.hx

@@ -35,6 +35,8 @@ extern class TransformList implements ArrayAccess<Transform>
 	/** @throws DOMError */
 	function initialize( newItem : Transform ) : Transform;
 	/** @throws DOMError */
+	function getItem( index : Int ) : Transform;
+	/** @throws DOMError */
 	function insertItemBefore( newItem : Transform, index : Int ) : Transform;
 	/** @throws DOMError */
 	function replaceItem( newItem : Transform, index : Int ) : Transform;