@@ -110,9 +110,9 @@ extension DomWindowExtension on DomWindow {
110110 }
111111
112112 @JS ('fetch' )
113- external JSPromise < JSAny ?> _fetch1 (JSString url);
113+ external JSPromise _fetch1 (JSString url);
114114 @JS ('fetch' )
115- external JSPromise < JSAny ?> _fetch2 (JSString url, JSAny headers);
115+ external JSPromise _fetch2 (JSString url, JSAny headers);
116116
117117 // ignore: non_constant_identifier_names
118118 external DomURL get URL ;
@@ -149,7 +149,7 @@ extension DomWindowExtension on DomWindow {
149149 external JSVoid _postMessage1 (JSAny message, JSString targetOrigin);
150150 @JS ('postMessage' )
151151 external JSVoid _postMessage2 (
152- JSAny message, JSString targetOrigin, JSArray < JSAny ?> messagePorts);
152+ JSAny message, JSString targetOrigin, JSArray messagePorts);
153153 void postMessage (Object message, String targetOrigin,
154154 [List <DomMessagePort >? messagePorts]) {
155155 if (messagePorts == null ) {
@@ -199,18 +199,18 @@ external DomIntl get domIntl;
199199external DomSymbol get domSymbol;
200200
201201@JS ('createImageBitmap' )
202- external JSPromise < JSAny ?> _createImageBitmap1 (
202+ external JSPromise _createImageBitmap1 (
203203 JSAny source,
204204);
205205@JS ('createImageBitmap' )
206- external JSPromise < JSAny ?> _createImageBitmap2 (
206+ external JSPromise _createImageBitmap2 (
207207 JSAny source,
208208 JSNumber x,
209209 JSNumber y,
210210 JSNumber width,
211211 JSNumber height,
212212);
213- JSPromise < JSAny ?> createImageBitmap (JSAny source,
213+ JSPromise createImageBitmap (JSAny source,
214214 [({int x, int y, int width, int height})? bounds]) {
215215 if (bounds != null ) {
216216 return _createImageBitmap2 (source, bounds.x.toJS, bounds.y.toJS,
@@ -248,7 +248,7 @@ extension DomNavigatorExtension on DomNavigator {
248248 String get userAgent => _userAgent.toDart;
249249
250250 @JS ('languages' )
251- external JSArray < JSAny ?> ? get _languages;
251+ external JSArray ? get _languages;
252252 List <String >? get languages => _languages? .toDart
253253 .map <String >((JSAny ? any) => (any! as JSString ).toDart)
254254 .toList ();
@@ -947,7 +947,7 @@ extension DomHTMLImageElementExtension on DomHTMLImageElement {
947947 set height (double ? value) => _height = value? .toJS;
948948
949949 @JS ('decode' )
950- external JSPromise < JSAny ?> _decode ();
950+ external JSPromise _decode ();
951951 Future <Object ?> decode () => js_util.promiseToFuture <Object ?>(_decode ());
952952}
953953
@@ -1886,16 +1886,16 @@ extension DomResponseExtension on DomResponse {
18861886 external _DomReadableStream get body;
18871887
18881888 @JS ('arrayBuffer' )
1889- external JSPromise < JSAny ?> _arrayBuffer ();
1889+ external JSPromise _arrayBuffer ();
18901890 Future <Object ?> arrayBuffer () =>
18911891 js_util.promiseToFuture <Object ?>(_arrayBuffer ());
18921892
18931893 @JS ('json' )
1894- external JSPromise < JSAny ?> _json ();
1894+ external JSPromise _json ();
18951895 Future <Object ?> json () => js_util.promiseToFuture <Object ?>(_json ());
18961896
18971897 @JS ('text' )
1898- external JSPromise < JSAny ?> _text ();
1898+ external JSPromise _text ();
18991899 Future <String > text () => js_util.promiseToFuture <String >(_text ());
19001900}
19011901
@@ -1923,7 +1923,7 @@ class _DomStreamReader {}
19231923
19241924extension _DomStreamReaderExtension on _DomStreamReader {
19251925 @JS ('read' )
1926- external JSPromise < JSAny ?> _read ();
1926+ external JSPromise _read ();
19271927 Future <_DomStreamChunk > read () =>
19281928 js_util.promiseToFuture <_DomStreamChunk >(_read ());
19291929}
@@ -2045,7 +2045,7 @@ DomFontFace createDomFontFace(String family, Object source,
20452045
20462046extension DomFontFaceExtension on DomFontFace {
20472047 @JS ('load' )
2048- external JSPromise < JSAny ?> _load ();
2048+ external JSPromise _load ();
20492049 Future <DomFontFace > load () => js_util.promiseToFuture (_load ());
20502050
20512051 @JS ('family' )
@@ -2166,11 +2166,11 @@ class DomClipboard extends DomEventTarget {}
21662166
21672167extension DomClipboardExtension on DomClipboard {
21682168 @JS ('readText' )
2169- external JSPromise < JSAny ?> _readText ();
2169+ external JSPromise _readText ();
21702170 Future <String > readText () => js_util.promiseToFuture <String >(_readText ());
21712171
21722172 @JS ('writeText' )
2173- external JSPromise < JSAny ?> _writeText (JSString data);
2173+ external JSPromise _writeText (JSString data);
21742174 Future <dynamic > writeText (String data) =>
21752175 js_util.promiseToFuture (_writeText (data.toJS));
21762176}
@@ -2340,26 +2340,26 @@ extension DomURLExtension on DomURL {
23402340@JS ('Blob' )
23412341@staticInterop
23422342class DomBlob {
2343- external factory DomBlob (JSArray < JSAny ?> parts);
2343+ external factory DomBlob (JSArray parts);
23442344
2345- external factory DomBlob .withOptions (JSArray < JSAny ?> parts, JSAny options);
2345+ external factory DomBlob .withOptions (JSArray parts, JSAny options);
23462346}
23472347
23482348extension DomBlobExtension on DomBlob {
2349- external JSPromise < JSAny ?> arrayBuffer ();
2349+ external JSPromise arrayBuffer ();
23502350}
23512351
23522352DomBlob createDomBlob (List <Object ?> parts, [Map <String , dynamic >? options]) {
23532353 if (options == null ) {
2354- return DomBlob (parts.toJSAnyShallow as JSArray < JSAny ?> );
2354+ return DomBlob (parts.toJSAnyShallow as JSArray );
23552355 } else {
23562356 return DomBlob .withOptions (
2357- parts.toJSAnyShallow as JSArray < JSAny ?> , options.toJSAnyDeep);
2357+ parts.toJSAnyShallow as JSArray , options.toJSAnyDeep);
23582358 }
23592359}
23602360
23612361typedef DomMutationCallback = void Function (
2362- JSArray < JSAny ?> mutation, DomMutationObserver observer);
2362+ JSArray mutation, DomMutationObserver observer);
23632363
23642364@JS ('MutationObserver' )
23652365@staticInterop
@@ -2565,7 +2565,7 @@ extension DomPointerEventExtension on DomPointerEvent {
25652565 double ? get tiltY => _tiltY? .toDartDouble;
25662566
25672567 @JS ('getCoalescedEvents' )
2568- external JSArray < JSAny ?> _getCoalescedEvents ();
2568+ external JSArray _getCoalescedEvents ();
25692569 List <DomPointerEvent > getCoalescedEvents () =>
25702570 _getCoalescedEvents ().toDart.cast <DomPointerEvent >();
25712571}
@@ -2886,11 +2886,11 @@ extension DomOffscreenCanvasExtension on DomOffscreenCanvas {
28862886 }
28872887
28882888 @JS ('convertToBlob' )
2889- external JSPromise < JSAny ?> _convertToBlob1 ();
2889+ external JSPromise _convertToBlob1 ();
28902890 @JS ('convertToBlob' )
2891- external JSPromise < JSAny ?> _convertToBlob2 (JSAny options);
2891+ external JSPromise _convertToBlob2 (JSAny options);
28922892 Future <DomBlob > convertToBlob ([Map <Object ?, Object ?>? options]) {
2893- final JSPromise < JSAny ?> blob;
2893+ final JSPromise blob;
28942894 if (options == null ) {
28952895 blob = _convertToBlob1 ();
28962896 } else {
@@ -3013,7 +3013,7 @@ class DomScreenOrientation extends DomEventTarget {}
30133013
30143014extension DomScreenOrientationExtension on DomScreenOrientation {
30153015 @JS ('lock' )
3016- external JSPromise < JSAny ?> _lock (JSString orientation);
3016+ external JSPromise _lock (JSString orientation);
30173017 Future <dynamic > lock (String orientation) =>
30183018 js_util.promiseToFuture (_lock (orientation.toJS));
30193019
@@ -3163,7 +3163,7 @@ abstract class DomResizeObserver {
31633163/// Internally converts the `List<dynamic>` of entries into the expected
31643164/// `List<DomResizeObserverEntry>`
31653165DomResizeObserver ? createDomResizeObserver (DomResizeObserverCallbackFn fn) =>
3166- DomResizeObserver ((JSArray < JSAny ?> entries, DomResizeObserver observer) {
3166+ DomResizeObserver ((JSArray entries, DomResizeObserver observer) {
31673167 fn (entries.toDart.cast <DomResizeObserverEntry >(), observer);
31683168 }.toJS);
31693169
@@ -3480,7 +3480,7 @@ class DomSegmenter {
34803480 // TODO(joshualitt): `locales` should really be typed as `JSAny?`, and we
34813481 // should pass `JSUndefined`. Revisit this after we reify `JSUndefined` on
34823482 // Dart2Wasm.
3483- external factory DomSegmenter (JSArray < JSAny ?> locales, JSAny options);
3483+ external factory DomSegmenter (JSArray locales, JSAny options);
34843484}
34853485
34863486extension DomSegmenterExtension on DomSegmenter {
@@ -3580,7 +3580,7 @@ DomSegmenter createIntlSegmenter({required String granularity}) {
35803580@JS ('Intl.v8BreakIterator' )
35813581@staticInterop
35823582class DomV8BreakIterator {
3583- external factory DomV8BreakIterator (JSArray < JSAny ?> locales, JSAny options);
3583+ external factory DomV8BreakIterator (JSArray locales, JSAny options);
35843584}
35853585
35863586extension DomV8BreakIteratorExtension on DomV8BreakIterator {
@@ -3679,7 +3679,7 @@ bool get browserSupportsCreateImageBitmap =>
36793679
36803680@JS ()
36813681@staticInterop
3682- extension JSArrayExtension on JSArray < JSAny ?> {
3682+ extension JSArrayExtension on JSArray {
36833683 external void push (JSAny value);
36843684 external JSNumber get length;
36853685}
0 commit comments