Skip to content

Commit

Permalink
Add reference to isA extension to JS interop usage guide
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Jan 7, 2025
1 parent 20b8c31 commit 0c09347
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/interop/js-interop/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ Utility functions include:
may be expensive.
- [`importModule`], which allows you to import modules dynamically as
`JSObject`s.
- [`isA`][], which allows you to check if a JS-interop value is
an instance of the JS type specified as the type argument.

More utilities may be added to this library in the future.

Expand All @@ -465,6 +467,8 @@ more difficult to guarantee and may lead to violations, which is why it can be
"unsafe".
:::

[`isA`]: {{site.dart-api}}/dart-js_interop/JSAnyUtilityExtension/isA.html

{% comment %}
TODO: Some of these are not available on stable. How do we link to dev?
{% endcomment %}
Expand Down

0 comments on commit 0c09347

Please sign in to comment.