js library

Allows interoperability with Javascript APIs.

Classes

JS
A metadata annotation that indicates that a Library, Class, or member is implemented directly in JavaScript. All external members of a class or library with this annotation implicitly have it as well. [...]

Constants

anonymous → const _Anonymous
A metadata annotation that indicates that a @JS annotated class is structural and does not have a known JavaScript prototype. [...]
const _Anonymous()

Functions

allowInterop<F extends Function>(F f) → F
Returns a wrapper around function f that can be called from JavaScript using package:js JavaScript interop. [...]
allowInteropCaptureThis(Function f) Function
Returns a wrapper around function f that can be called from JavaScript using package:js JavaScript interop, passing JavaScript this as the first argument. [...]