Skip to content

Commit f43b700

Browse files
authored
Add reference to isA extension to JS interop usage guide (#6309)
Added in Dart 3.4: https://api.dart.dev/dart-js_interop/JSAnyUtilityExtension/isA.html
1 parent 2aaf222 commit f43b700

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/content/interop/js-interop/usage.md

+3
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,8 @@ Utility functions include:
507507
as the extra type-checking might be expensive.
508508
- [`importModule`][], which allows you to
509509
import modules dynamically as a `JSObject`.
510+
- [`isA`][], which allows you to check if a JS-interop value is
511+
an instance of the JS type specified by the type argument.
510512

511513
More utilities might be added to this library in the future.
512514

@@ -534,4 +536,5 @@ might lead to violations, which is why it can be "unsafe".
534536
[`dartify`]: {{site.dart-api}}/dart-js_interop/JSAnyUtilityExtension/dartify.html
535537
[`jsify`]: {{site.dart-api}}/dart-js_interop/NullableObjectUtilExtension/jsify.html
536538
[`importModule`]: {{site.dart-api}}/dart-js_interop/importModule.html
539+
[`isA`]: {{site.dart-api}}/dart-js_interop/JSAnyUtilityExtension/isA.html
537540
[`dart:js_interop_unsafe`]: {{site.dart-api}}/dart-js_interop_unsafe/dart-js_interop_unsafe-library.html

0 commit comments

Comments
 (0)