Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/js_interop_gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ jobs:
run: touch .last_npm_install
working-directory: js_interop_gen/lib/src
- run: dart format --output=none --set-exit-if-changed .
if: matrix.sdk == 'dev' && matrix.test_config == ''
# NOTE: validating formatting on 3.10 (NOT dev)
# because pkg:dart_style does not support formatting code
# that aligns with changes in the latest Dart dev SDK
if: matrix.sdk == '3.10' && matrix.test_config == ''
- run: dart analyze --fatal-infos
if: matrix.sdk == 'dev' && matrix.test_config == ''
- run: dart analyze
Expand Down
2 changes: 1 addition & 1 deletion js_interop_gen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
sdk: ^3.10.0

dependencies:
analyzer: ^12.0.0
analyzer: '>=12.0.0 <14.0.0'
args: ^2.5.0
code_builder: ^4.10.0
collection: ^1.19.1
Expand Down
3 changes: 2 additions & 1 deletion js_interop_gen/test/integration/interop_gen/_tuples.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import 'dart:js_interop' as _i1;

extension type JSTuple2<A extends _i1.JSAny?, B extends _i1.JSAny?>._(
_i1.JSArray<_i1.JSAny?> _
) implements _i1.JSArray<_i1.JSAny?> {
)
implements _i1.JSArray<_i1.JSAny?> {
A get $1 => (_[0] as A);

B get $2 => (_[1] as B);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ extension type EnterpriseApp_DataServices._(_i1.JSObject _)
@_i1.JS('EnterpriseApp.DataServices.IDataService')
extension type EnterpriseApp_DataServices_IDataService<T extends _i1.JSAny?>._(
_i1.JSObject _
) implements _i1.JSObject {
)
implements _i1.JSObject {
external _i1.JSArray<T> getAll();
external T getById(String id);
external void save(T item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ extension type const KeyOf_TypeOf_MyEnum._(String _) {
}
extension type _AnonymousFunction_3217419<T extends _i1.JSAny?>._(
_i1.JSFunction _
) implements _i1.JSFunction {
)
implements _i1.JSFunction {
external ComposedType<T> call(T object);
}
extension type ComposedType<T extends _i1.JSAny?>._(_i1.JSObject _)
Expand Down
Loading