@@ -110,9 +110,9 @@ extension DomWindowExtension on DomWindow {
110
110
}
111
111
112
112
@JS ('fetch' )
113
- external JSPromise _fetch1 (JSString url);
113
+ external JSPromise < JSAny ?> _fetch1 (JSString url);
114
114
@JS ('fetch' )
115
- external JSPromise _fetch2 (JSString url, JSAny headers);
115
+ external JSPromise < JSAny ?> _fetch2 (JSString url, JSAny headers);
116
116
117
117
// ignore: non_constant_identifier_names
118
118
external DomURL get URL ;
@@ -149,7 +149,7 @@ extension DomWindowExtension on DomWindow {
149
149
external JSVoid _postMessage1 (JSAny message, JSString targetOrigin);
150
150
@JS ('postMessage' )
151
151
external JSVoid _postMessage2 (
152
- JSAny message, JSString targetOrigin, JSArray messagePorts);
152
+ JSAny message, JSString targetOrigin, JSArray < JSAny ?> messagePorts);
153
153
void postMessage (Object message, String targetOrigin,
154
154
[List <DomMessagePort >? messagePorts]) {
155
155
if (messagePorts == null ) {
@@ -199,18 +199,18 @@ external DomIntl get domIntl;
199
199
external DomSymbol get domSymbol;
200
200
201
201
@JS ('createImageBitmap' )
202
- external JSPromise _createImageBitmap1 (
202
+ external JSPromise < JSAny ?> _createImageBitmap1 (
203
203
JSAny source,
204
204
);
205
205
@JS ('createImageBitmap' )
206
- external JSPromise _createImageBitmap2 (
206
+ external JSPromise < JSAny ?> _createImageBitmap2 (
207
207
JSAny source,
208
208
JSNumber x,
209
209
JSNumber y,
210
210
JSNumber width,
211
211
JSNumber height,
212
212
);
213
- JSPromise createImageBitmap (JSAny source,
213
+ JSPromise < JSAny ?> createImageBitmap (JSAny source,
214
214
[({int x, int y, int width, int height})? bounds]) {
215
215
if (bounds != null ) {
216
216
return _createImageBitmap2 (source, bounds.x.toJS, bounds.y.toJS,
@@ -248,7 +248,7 @@ extension DomNavigatorExtension on DomNavigator {
248
248
String get userAgent => _userAgent.toDart;
249
249
250
250
@JS ('languages' )
251
- external JSArray ? get _languages;
251
+ external JSArray < JSAny ?> ? get _languages;
252
252
List <String >? get languages => _languages? .toDart
253
253
.map <String >((JSAny ? any) => (any! as JSString ).toDart)
254
254
.toList ();
@@ -947,7 +947,7 @@ extension DomHTMLImageElementExtension on DomHTMLImageElement {
947
947
set height (double ? value) => _height = value? .toJS;
948
948
949
949
@JS ('decode' )
950
- external JSPromise _decode ();
950
+ external JSPromise < JSAny ?> _decode ();
951
951
Future <Object ?> decode () => js_util.promiseToFuture <Object ?>(_decode ());
952
952
}
953
953
@@ -1886,16 +1886,16 @@ extension DomResponseExtension on DomResponse {
1886
1886
external _DomReadableStream get body;
1887
1887
1888
1888
@JS ('arrayBuffer' )
1889
- external JSPromise _arrayBuffer ();
1889
+ external JSPromise < JSAny ?> _arrayBuffer ();
1890
1890
Future <Object ?> arrayBuffer () =>
1891
1891
js_util.promiseToFuture <Object ?>(_arrayBuffer ());
1892
1892
1893
1893
@JS ('json' )
1894
- external JSPromise _json ();
1894
+ external JSPromise < JSAny ?> _json ();
1895
1895
Future <Object ?> json () => js_util.promiseToFuture <Object ?>(_json ());
1896
1896
1897
1897
@JS ('text' )
1898
- external JSPromise _text ();
1898
+ external JSPromise < JSAny ?> _text ();
1899
1899
Future <String > text () => js_util.promiseToFuture <String >(_text ());
1900
1900
}
1901
1901
@@ -1923,7 +1923,7 @@ class _DomStreamReader {}
1923
1923
1924
1924
extension _DomStreamReaderExtension on _DomStreamReader {
1925
1925
@JS ('read' )
1926
- external JSPromise _read ();
1926
+ external JSPromise < JSAny ?> _read ();
1927
1927
Future <_DomStreamChunk > read () =>
1928
1928
js_util.promiseToFuture <_DomStreamChunk >(_read ());
1929
1929
}
@@ -2045,7 +2045,7 @@ DomFontFace createDomFontFace(String family, Object source,
2045
2045
2046
2046
extension DomFontFaceExtension on DomFontFace {
2047
2047
@JS ('load' )
2048
- external JSPromise _load ();
2048
+ external JSPromise < JSAny ?> _load ();
2049
2049
Future <DomFontFace > load () => js_util.promiseToFuture (_load ());
2050
2050
2051
2051
@JS ('family' )
@@ -2166,11 +2166,11 @@ class DomClipboard extends DomEventTarget {}
2166
2166
2167
2167
extension DomClipboardExtension on DomClipboard {
2168
2168
@JS ('readText' )
2169
- external JSPromise _readText ();
2169
+ external JSPromise < JSAny ?> _readText ();
2170
2170
Future <String > readText () => js_util.promiseToFuture <String >(_readText ());
2171
2171
2172
2172
@JS ('writeText' )
2173
- external JSPromise _writeText (JSString data);
2173
+ external JSPromise < JSAny ?> _writeText (JSString data);
2174
2174
Future <dynamic > writeText (String data) =>
2175
2175
js_util.promiseToFuture (_writeText (data.toJS));
2176
2176
}
@@ -2340,26 +2340,26 @@ extension DomURLExtension on DomURL {
2340
2340
@JS ('Blob' )
2341
2341
@staticInterop
2342
2342
class DomBlob {
2343
- external factory DomBlob (JSArray parts);
2343
+ external factory DomBlob (JSArray < JSAny ?> parts);
2344
2344
2345
- external factory DomBlob .withOptions (JSArray parts, JSAny options);
2345
+ external factory DomBlob .withOptions (JSArray < JSAny ?> parts, JSAny options);
2346
2346
}
2347
2347
2348
2348
extension DomBlobExtension on DomBlob {
2349
- external JSPromise arrayBuffer ();
2349
+ external JSPromise < JSAny ?> arrayBuffer ();
2350
2350
}
2351
2351
2352
2352
DomBlob createDomBlob (List <Object ?> parts, [Map <String , dynamic >? options]) {
2353
2353
if (options == null ) {
2354
- return DomBlob (parts.toJSAnyShallow as JSArray );
2354
+ return DomBlob (parts.toJSAnyShallow as JSArray < JSAny ?> );
2355
2355
} else {
2356
2356
return DomBlob .withOptions (
2357
- parts.toJSAnyShallow as JSArray , options.toJSAnyDeep);
2357
+ parts.toJSAnyShallow as JSArray < JSAny ?> , options.toJSAnyDeep);
2358
2358
}
2359
2359
}
2360
2360
2361
2361
typedef DomMutationCallback = void Function (
2362
- JSArray mutation, DomMutationObserver observer);
2362
+ JSArray < JSAny ?> mutation, DomMutationObserver observer);
2363
2363
2364
2364
@JS ('MutationObserver' )
2365
2365
@staticInterop
@@ -2565,7 +2565,7 @@ extension DomPointerEventExtension on DomPointerEvent {
2565
2565
double ? get tiltY => _tiltY? .toDartDouble;
2566
2566
2567
2567
@JS ('getCoalescedEvents' )
2568
- external JSArray _getCoalescedEvents ();
2568
+ external JSArray < JSAny ?> _getCoalescedEvents ();
2569
2569
List <DomPointerEvent > getCoalescedEvents () =>
2570
2570
_getCoalescedEvents ().toDart.cast <DomPointerEvent >();
2571
2571
}
@@ -2886,11 +2886,11 @@ extension DomOffscreenCanvasExtension on DomOffscreenCanvas {
2886
2886
}
2887
2887
2888
2888
@JS ('convertToBlob' )
2889
- external JSPromise _convertToBlob1 ();
2889
+ external JSPromise < JSAny ?> _convertToBlob1 ();
2890
2890
@JS ('convertToBlob' )
2891
- external JSPromise _convertToBlob2 (JSAny options);
2891
+ external JSPromise < JSAny ?> _convertToBlob2 (JSAny options);
2892
2892
Future <DomBlob > convertToBlob ([Map <Object ?, Object ?>? options]) {
2893
- final JSPromise blob;
2893
+ final JSPromise < JSAny ?> blob;
2894
2894
if (options == null ) {
2895
2895
blob = _convertToBlob1 ();
2896
2896
} else {
@@ -3013,7 +3013,7 @@ class DomScreenOrientation extends DomEventTarget {}
3013
3013
3014
3014
extension DomScreenOrientationExtension on DomScreenOrientation {
3015
3015
@JS ('lock' )
3016
- external JSPromise _lock (JSString orientation);
3016
+ external JSPromise < JSAny ?> _lock (JSString orientation);
3017
3017
Future <dynamic > lock (String orientation) =>
3018
3018
js_util.promiseToFuture (_lock (orientation.toJS));
3019
3019
@@ -3163,7 +3163,7 @@ abstract class DomResizeObserver {
3163
3163
/// Internally converts the `List<dynamic>` of entries into the expected
3164
3164
/// `List<DomResizeObserverEntry>`
3165
3165
DomResizeObserver ? createDomResizeObserver (DomResizeObserverCallbackFn fn) =>
3166
- DomResizeObserver ((JSArray entries, DomResizeObserver observer) {
3166
+ DomResizeObserver ((JSArray < JSAny ?> entries, DomResizeObserver observer) {
3167
3167
fn (entries.toDart.cast <DomResizeObserverEntry >(), observer);
3168
3168
}.toJS);
3169
3169
@@ -3480,7 +3480,7 @@ class DomSegmenter {
3480
3480
// TODO(joshualitt): `locales` should really be typed as `JSAny?`, and we
3481
3481
// should pass `JSUndefined`. Revisit this after we reify `JSUndefined` on
3482
3482
// Dart2Wasm.
3483
- external factory DomSegmenter (JSArray locales, JSAny options);
3483
+ external factory DomSegmenter (JSArray < JSAny ?> locales, JSAny options);
3484
3484
}
3485
3485
3486
3486
extension DomSegmenterExtension on DomSegmenter {
@@ -3580,7 +3580,7 @@ DomSegmenter createIntlSegmenter({required String granularity}) {
3580
3580
@JS ('Intl.v8BreakIterator' )
3581
3581
@staticInterop
3582
3582
class DomV8BreakIterator {
3583
- external factory DomV8BreakIterator (JSArray locales, JSAny options);
3583
+ external factory DomV8BreakIterator (JSArray < JSAny ?> locales, JSAny options);
3584
3584
}
3585
3585
3586
3586
extension DomV8BreakIteratorExtension on DomV8BreakIterator {
@@ -3679,7 +3679,7 @@ bool get browserSupportsCreateImageBitmap =>
3679
3679
3680
3680
@JS ()
3681
3681
@staticInterop
3682
- extension JSArrayExtension on JSArray {
3682
+ extension JSArrayExtension on JSArray < JSAny ?> {
3683
3683
external void push (JSAny value);
3684
3684
external JSNumber get length;
3685
3685
}
0 commit comments