Skip to content

JSClassBuilder<T>.DefineInterface method ​

Defines a JS class that represents a .NET interface.

C#
public JSValue DefineInterface()

Remarks ​

A JS class defined this way may not be constructed directly from JS. An instance of the class may be constructed when passing a .NET object (that implements the interface) to JS via GetOrCreateObjectWrapper.

See Also ​

Released under the MIT license