File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ String prettyDOM(
66
66
if (min != null ) options.min = min;
67
67
if (filterNode != null ) {
68
68
// Convert from one arg to three args to work around typing issue in https://github.com/testing-library/dom-testing-library/issues/1360
69
- final jsFilterNode = (Node n, _, __) => filterNode (n);
69
+ final jsFilterNode = (Node n, [ _, __] ) => filterNode (n);
70
70
71
71
options.filterNode = allowInterop (jsFilterNode);
72
72
}
@@ -113,6 +113,6 @@ class PrettyDomOptions {
113
113
/// You can configure this behavior by passing a custom `filterNode` function that should return true for every
114
114
/// node that you wish to include in the output.
115
115
/// {@endtemplate}
116
- external bool Function (Node , dynamic , dynamic )? get filterNode;
117
- external set filterNode (bool Function (Node , dynamic , dynamic )? value);
116
+ external bool Function (Node , [ dynamic , dynamic ] )? get filterNode;
117
+ external set filterNode (bool Function (Node , [ dynamic , dynamic ] )? value);
118
118
}
You can’t perform that action at this time.
0 commit comments